pub enum ContentTerm {
Element(ElementRef),
Group(ModelGroupDef),
GroupRef(ModelGroupKey),
Wildcard(WildcardRef),
}Expand description
Content model term (element, group, or wildcard)
Variants§
Element(ElementRef)
Reference to an element
Group(ModelGroupDef)
Model group (sequence, choice, all)
GroupRef(ModelGroupKey)
Reference to a named model group
Wildcard(WildcardRef)
Wildcard (any element)
Trait Implementations§
Source§impl Clone for ContentTerm
impl Clone for ContentTerm
Source§fn clone(&self) -> ContentTerm
fn clone(&self) -> ContentTerm
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 ContentTerm
impl RefUnwindSafe for ContentTerm
impl Send for ContentTerm
impl Sync for ContentTerm
impl Unpin for ContentTerm
impl UnsafeUnpin for ContentTerm
impl UnwindSafe for ContentTerm
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