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]
fn clone(&self) -> IncompleteToken<'t>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'t> Debug for IncompleteToken<'t>
[src]
impl<'t> PartialEq<IncompleteToken<'t>> for IncompleteToken<'t>
[src]
fn eq(&self, other: &IncompleteToken<'t>) -> bool
[src]
fn ne(&self, other: &IncompleteToken<'t>) -> bool
[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]
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>,