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]
&mut self
) -> impl DoubleEndedIterator<Item = &mut IncompleteToken<'t>>
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]
fn clone(&self) -> IncompleteSentence<'t>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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?
fn into_iter(self) -> Self::IntoIter
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,