pub enum Content<'a> {
None,
Value(Value<'a>),
Children(Children<'a>),
}Expand description
What a node carries after its attributes.
Not Copy: the child variant holds an iterator, and a silently duplicated
iterator is a bug waiting to happen.
Variants§
Implementations§
Trait Implementations§
impl<'a> Eq for Content<'a>
impl<'a> StructuralPartialEq for Content<'a>
Auto Trait Implementations§
impl<'a> Freeze for Content<'a>
impl<'a> RefUnwindSafe for Content<'a>
impl<'a> Send for Content<'a>
impl<'a> Sync for Content<'a>
impl<'a> Unpin for Content<'a>
impl<'a> UnsafeUnpin for Content<'a>
impl<'a> UnwindSafe for Content<'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