jdrouet/mrml

View on GitHub
packages/mrml-core/src/mj_raw/children.rs

Summary

Maintainability
Test Coverage
use crate::comment::Comment;
use crate::node::Node;
use crate::text::Text;

#[derive(Clone, Debug)]
#[cfg_attr(feature = "json", derive(serde::Deserialize, serde::Serialize))]
#[cfg_attr(feature = "json", serde(untagged))]
#[cfg_attr(feature = "print", enum_dispatch::enum_dispatch)]
pub enum MjRawChild {
    Comment(Comment),
    Node(Node<MjRawChild>),
    Text(Text),
}