pub enum ContentModel {
Empty,
Simple(Arc<SimpleType>),
Complex {
root: Particle,
mixed: bool,
},
}Expand description
A type’s body shape: nothing, a simple value, or a particle tree.
Variants§
Empty
<xs:complexType><xs:complexContent> with no children — empty
element type.
Simple(Arc<SimpleType>)
Simple-content type — body is a parsed value of a simple type (still allows attributes via the surrounding ComplexType).
Complex
Element-only or mixed content described by a particle tree.
Trait Implementations§
Source§impl Clone for ContentModel
impl Clone for ContentModel
Source§fn clone(&self) -> ContentModel
fn clone(&self) -> ContentModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ContentModel
impl RefUnwindSafe for ContentModel
impl Send for ContentModel
impl Sync for ContentModel
impl Unpin for ContentModel
impl UnsafeUnpin for ContentModel
impl UnwindSafe for ContentModel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more