pub enum Node<'a> {
Root(Parent<'a>),
Paragraph(Parent<'a>),
Sentence(Parent<'a>),
Word(Parent<'a>),
Text(Literal<'a>),
Symbol(Literal<'a>),
Punctuation(Literal<'a>),
WhiteSpace(Literal<'a>),
Source(Literal<'a>),
Unknown(Unknown<'a>),
}Expand description
An nlcst node: natural language as paragraphs, sentences and words.
Variants§
Root(Parent<'a>)
Paragraph(Parent<'a>)
Sentence(Parent<'a>)
Word(Parent<'a>)
Text(Literal<'a>)
Symbol(Literal<'a>)
Punctuation(Literal<'a>)
WhiteSpace(Literal<'a>)
Source(Literal<'a>)
Unknown(Unknown<'a>)
Implementations§
Trait Implementations§
impl<'a> StructuralPartialEq for Node<'a>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Node<'a>
impl<'a> !Send for Node<'a>
impl<'a> !Sync for Node<'a>
impl<'a> !UnwindSafe for Node<'a>
impl<'a> Freeze for Node<'a>
impl<'a> Unpin for Node<'a>
impl<'a> UnsafeUnpin for Node<'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