pub enum NodeContent {
Bytes(Vec<u8>),
String(CompactString),
Nodes(Vec<Node>),
}Variants§
Implementations§
Source§impl NodeContent
impl NodeContent
Sourcepub fn as_content_ref(&self) -> NodeContentRef<'_>
pub fn as_content_ref(&self) -> NodeContentRef<'_>
Convert an owned NodeContent to a borrowed NodeContentRef.
Trait Implementations§
Source§impl Clone for NodeContent
impl Clone for NodeContent
Source§impl Debug for NodeContent
impl Debug for NodeContent
Source§impl PartialEq for NodeContent
impl PartialEq for NodeContent
impl StructuralPartialEq for NodeContent
Auto Trait Implementations§
impl Forget for NodeContent
impl Freeze for NodeContent
impl Move for NodeContent
impl RefUnwindSafe for NodeContent
impl Send for NodeContent
impl Sync for NodeContent
impl Unpin for NodeContent
impl UnsafeUnpin for NodeContentwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const (): UnsafeUnpin,
PhantomData<Node>: UnsafeUnpin,
impl UnwindSafe for NodeContentwhere
RawVecInner: UnwindSafe,
*const (): UnwindSafe,
&'static str: UnwindSafe,
String: UnwindSafe,
NonNull<(Cow<'static, str>, NodeValue)>: UnwindSafe,
(Cow<'static, str>, NodeValue): 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