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

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.