#[repr(u8)]pub enum DocumentNode {
Comment {
content: String,
},
Text {
content: String,
wrap: Option<Wrap>,
},
}Expand description
A comment or literal text node in a plain text document.
Variants§
Comment
A comment, rendered using the document’s CommentSyntax.
Text
Literal text copied into the document, optionally wrapped.
Trait Implementations§
Source§impl Clone for DocumentNode
impl Clone for DocumentNode
Source§fn clone(&self) -> DocumentNode
fn clone(&self) -> DocumentNode
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 Debug for DocumentNode
impl Debug for DocumentNode
impl Eq for DocumentNode
Source§impl<'ʄ> Facet<'ʄ> for DocumentNode
impl<'ʄ> Facet<'ʄ> for DocumentNode
Source§impl PartialEq for DocumentNode
impl PartialEq for DocumentNode
impl StructuralPartialEq for DocumentNode
Auto Trait Implementations§
impl Freeze for DocumentNode
impl RefUnwindSafe for DocumentNode
impl Send for DocumentNode
impl Sync for DocumentNode
impl Unpin for DocumentNode
impl UnsafeUnpin for DocumentNode
impl UnwindSafe for DocumentNode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.