Struct nlprule::types::IncompleteSentence[][src]

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

A incomplete sentence containing partially set information about the tokens. Can be converted to a complete sentence with into_sentence.

Implementations

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

pub fn text(&self) -> &'t str[src]

Gets the text of this sentence.

pub fn iter_mut(
    &mut self
) -> impl DoubleEndedIterator<Item = &mut IncompleteToken<'t>>
[src]

Returns an iterator over tokens by mutable reference.

pub fn iter(&self) -> impl DoubleEndedIterator<Item = &IncompleteToken<'_>>[src]

Returns an iterator over tokens by reference.

pub fn len(&self) -> usize[src]

Gets the amount of tokens in this sentence.

pub fn tagger(&self) -> &'t Tagger[src]

Gets the tagger associated with this sentence.

pub fn into_sentence(self) -> Sentence<'t>[src]

Converts this incomplete sentence into a Sentence.

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

Returns the span of this sentence.

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

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

Trait Implementations

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

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

impl<'t> IntoIterator for IncompleteSentence<'t>[src]

type Item = IncompleteToken<'t>

The type of the elements being iterated over.

type IntoIter = IntoIter<Self::Item>

Which kind of iterator are we turning this into?

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

Auto Trait Implementations

impl<'t> !RefUnwindSafe for IncompleteSentence<'t>

impl<'t> Send for IncompleteSentence<'t>

impl<'t> Sync for IncompleteSentence<'t>

impl<'t> Unpin for IncompleteSentence<'t>

impl<'t> !UnwindSafe for IncompleteSentence<'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.