Struct nlprule::types::Sentence [−][src]
A Sentence. As opposed to IncompleteSentence, all information is set and frozen. Always contains at least one token.
Implementations
impl<'t> Sentence<'t>
[src]
pub fn tokens(&self) -> &[Token<'t>]
[src]
Gets the tokens in this sentence.
pub fn iter(&self) -> impl DoubleEndedIterator<Item = &Token<'_>>
[src]
Returns an iterator over tokens by reference.
pub fn text(&self) -> &'t str
[src]
Gets the text of this sentence.
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 span(&self) -> &Span
[src]
Returns the span of this sentence.
Trait Implementations
impl<'t> Clone for Sentence<'t>
[src]
impl<'t> Debug for Sentence<'t>
[src]
impl<'t> IntoIterator for Sentence<'t>
[src]
type Item = Token<'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<Sentence<'t>> for Sentence<'t>
[src]
Auto Trait Implementations
impl<'t> !RefUnwindSafe for Sentence<'t>
impl<'t> Send for Sentence<'t>
impl<'t> Sync for Sentence<'t>
impl<'t> Unpin for Sentence<'t>
impl<'t> !UnwindSafe for Sentence<'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>,