pub enum RncBodyItem {
Attribute(RncAttribute),
Element(RncElement),
PatternRef(String),
Choice {
options: Vec<RncBodyItem>,
quantifier: RncQuantifier,
},
Mixed(Vec<RncBodyItem>),
Type(String),
Empty,
AnyElement(RncQuantifier),
PatternedText(String),
InlineEnum(Vec<String>),
}Expand description
A body item in an RNC definition (recursive).
Variants§
Attribute(RncAttribute)
Element(RncElement)
PatternRef(String)
Choice
Mixed(Vec<RncBodyItem>)
Type(String)
Empty
AnyElement(RncQuantifier)
PatternedText(String)
InlineEnum(Vec<String>)
Trait Implementations§
Source§impl Clone for RncBodyItem
impl Clone for RncBodyItem
Source§fn clone(&self) -> RncBodyItem
fn clone(&self) -> RncBodyItem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RncBodyItem
impl Debug for RncBodyItem
Auto Trait Implementations§
impl Freeze for RncBodyItem
impl RefUnwindSafe for RncBodyItem
impl Send for RncBodyItem
impl Sync for RncBodyItem
impl Unpin for RncBodyItem
impl UnsafeUnpin for RncBodyItem
impl UnwindSafe for RncBodyItem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
impl<'p, T> Seq<'p, T> for Twhere
T: Clone,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.