pub enum ContentModel {
Empty,
Any,
Mixed {
choices: Vec<String>,
},
Children(Group),
}Expand description
XML 1.0 § 3.2 element content classifications.
Variants§
Empty
EMPTY — no children of any kind allowed.
Any
ANY — anything goes (no validation against this element).
Mixed
Mixed content per § 3.2.2 [51]. Either (#PCDATA)* (no
child elements named, choices empty) or
(#PCDATA | a | b ...)*. Always carries the trailing *
implicitly when choices is non-empty.
Children(Group)
Children content per § 3.2.1 [47]. A nested group of element-name particles with sequence/choice/occurrence structure.
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