pub enum NodeContents<'a> {
Data(&'a [u8]),
Children(Vec<Node<'a>>),
}
Variants§
Data(&'a [u8])
A &[u8]
byte slice this node matched in the parse input. Only leaf nodes
have Data
contents.
Children(Vec<Node<'a>>)
Children of the node, if any. Only non-leaf nodes have Children
contents.
Trait Implementations§
Source§impl<'a> Debug for NodeContents<'a>
impl<'a> Debug for NodeContents<'a>
Source§impl<'a> PartialEq for NodeContents<'a>
impl<'a> PartialEq for NodeContents<'a>
impl<'a> StructuralPartialEq for NodeContents<'a>
Auto Trait Implementations§
impl<'a> Freeze for NodeContents<'a>
impl<'a> RefUnwindSafe for NodeContents<'a>
impl<'a> Send for NodeContents<'a>
impl<'a> Sync for NodeContents<'a>
impl<'a> Unpin for NodeContents<'a>
impl<'a> UnwindSafe for NodeContents<'a>
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