pub enum OpenContent<'a> {
None,
Children(usize),
Scalar(NodeContentRef<'a>),
}Expand description
What follows a node’s attributes on the wire.
Variants§
None
Nothing, or an empty list.
Children(usize)
A list of this many child nodes, each still to be decoded.
Scalar(NodeContentRef<'a>)
A string or a byte payload: decoded whole, since it has no parts.
Trait Implementations§
Source§impl<'a> Debug for OpenContent<'a>
impl<'a> Debug for OpenContent<'a>
Source§impl<'a> PartialEq for OpenContent<'a>
impl<'a> PartialEq for OpenContent<'a>
impl<'a> StructuralPartialEq for OpenContent<'a>
Auto Trait Implementations§
impl<'a> Forget for OpenContent<'a>
impl<'a> Freeze for OpenContent<'a>
impl<'a> Move for OpenContent<'a>
impl<'a> RefUnwindSafe for OpenContent<'a>
impl<'a> Send for OpenContent<'a>
impl<'a> Sync for OpenContent<'a>
impl<'a> Unpin for OpenContent<'a>
impl<'a> UnsafeUnpin for OpenContent<'a>where
&'a [u8]: UnsafeUnpin,
Vec<u8>: UnsafeUnpin,
&'a str: UnsafeUnpin,
*const (): UnsafeUnpin,
*const [NodeRef<'a>] is !null: UnsafeUnpin,
PhantomData<[NodeRef<'a>]>: UnsafeUnpin,
impl<'a> UnwindSafe for OpenContent<'a>where
&'a [u8]: UnwindSafe,
Vec<u8>: UnwindSafe,
&'a str: UnwindSafe,
*const (): UnwindSafe,
BoxRaw<[NodeRef<'a>]>: UnwindSafe,
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