pub enum NodeContentRef<'a> {
Bytes(Cow<'a, [u8]>),
String(NodeStr<'a>),
Nodes(Box<[NodeRef<'a>]>),
}Variants§
Trait Implementations§
Source§impl<'a> Clone for NodeContentRef<'a>
impl<'a> Clone for NodeContentRef<'a>
Source§impl<'a> Debug for NodeContentRef<'a>
impl<'a> Debug for NodeContentRef<'a>
Source§impl<'a> PartialEq for NodeContentRef<'a>
impl<'a> PartialEq for NodeContentRef<'a>
impl<'a> StructuralPartialEq for NodeContentRef<'a>
Source§impl<'yoke> Yokeable<'yoke> for NodeContentRef<'static>
impl<'yoke> Yokeable<'yoke> for NodeContentRef<'static>
Source§type Output = NodeContentRef<'yoke>
type Output = NodeContentRef<'yoke>
This type MUST be
Self with the 'static replaced with 'a, i.e. Self<'a>Source§fn transform_owned(self) -> Self::Output
fn transform_owned(self) -> Self::Output
Auto Trait Implementations§
impl<'a> Forget for NodeContentRef<'a>
impl<'a> Freeze for NodeContentRef<'a>
impl<'a> Move for NodeContentRef<'a>
impl<'a> RefUnwindSafe for NodeContentRef<'a>
impl<'a> Send for NodeContentRef<'a>
impl<'a> Sync for NodeContentRef<'a>
impl<'a> Unpin for NodeContentRef<'a>
impl<'a> UnsafeUnpin for NodeContentRef<'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 NodeContentRef<'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