pub enum ContentMode {
Sequence,
Choice,
Bag,
Characters,
Mixed,
}
Expand description
The ContentMode specifies what content may occur inside an element
Variants
Sequence
Sequence: an ordered sequence of elements
Choice
Choice: a single element must be chosen from multiple options.
If the multiplicity of the chosen element is Any
then it may repeat so there might sill be more than one sub element
Bag
Bag: From a list of choices, choose a sub element any number of times. In this ContentMode all allowed sub elements may occur any number of times and in any order
Characters
Characters: no sub elements are permitted, there can only be character content
Mixed
Mixed: both characters content and sub elements are allowed, in any order. It’s basically like HTML
Trait Implementations
sourceimpl Clone for ContentMode
impl Clone for ContentMode
sourcefn clone(&self) -> ContentMode
fn clone(&self) -> ContentMode
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ContentMode
impl Debug for ContentMode
sourceimpl PartialEq<ContentMode> for ContentMode
impl PartialEq<ContentMode> for ContentMode
sourcefn eq(&self, other: &ContentMode) -> bool
fn eq(&self, other: &ContentMode) -> bool
impl Copy for ContentMode
impl Eq for ContentMode
impl StructuralEq for ContentMode
impl StructuralPartialEq for ContentMode
Auto Trait Implementations
impl RefUnwindSafe for ContentMode
impl Send for ContentMode
impl Sync for ContentMode
impl Unpin for ContentMode
impl UnwindSafe for ContentMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more