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§fn clone(&self) -> NodeContentRef<'a>
fn clone(&self) -> NodeContentRef<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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>
Source§fn eq(&self, other: &NodeContentRef<'a>) -> bool
fn eq(&self, other: &NodeContentRef<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.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
impl<'a> StructuralPartialEq for NodeContentRef<'a>
Auto Trait Implementations§
impl<'a> Freeze 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>
impl<'a> UnwindSafe for NodeContentRef<'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