Struct nlprule::types::IncompleteToken[][src]

pub struct IncompleteToken<'t> { /* fields omitted */ }

A token where varying levels of information are set.

Implementations

impl<'t> IncompleteToken<'t>[src]

pub fn into_token(self) -> Token<'t>[src]

Converts this incomplete token to a complete token.

pub fn word(&self) -> &Word<'t>[src]

The word of this token. Contains information about the actual text and part-of-speech tags + lemmas.

pub fn word_mut(&mut self) -> &mut Word<'t>[src]

pub fn span(&self) -> &Span[src]

The span of this sentence.

pub fn is_sentence_end(&self) -> bool[src]

Whether this token is the last token in the sentence-

pub fn is_sentence_end_mut(&mut self) -> &mut bool[src]

pub fn has_space_before(&self) -> bool[src]

Whether this token has one or more whitespace characters before.

pub fn chunks(&self) -> &[String][src]

Chunks associated with this token.

pub fn chunks_mut(&mut self) -> &mut Vec<String>[src]

pub fn rshift(self, position: Position) -> Self[src]

Shift the span of this token right by the specified amount.

Trait Implementations

impl<'t> Clone for IncompleteToken<'t>[src]

impl<'t> Debug for IncompleteToken<'t>[src]

impl<'t> PartialEq<IncompleteToken<'t>> for IncompleteToken<'t>[src]

impl<'t> StructuralPartialEq for IncompleteToken<'t>[src]

Auto Trait Implementations

impl<'t> RefUnwindSafe for IncompleteToken<'t>

impl<'t> Send for IncompleteToken<'t>

impl<'t> Sync for IncompleteToken<'t>

impl<'t> Unpin for IncompleteToken<'t>

impl<'t> UnwindSafe for IncompleteToken<'t>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.