[][src]Struct tantivy::tokenizer::Token

pub struct Token {
    pub offset_from: usize,
    pub offset_to: usize,
    pub position: usize,
    pub text: String,
    pub position_length: usize,
}

Token

Fields

offset_from: usize

Offset (byte index) of the first character of the token. Offsets shall not be modified by token filters.

offset_to: usize

Offset (byte index) of the last character of the token + 1. The text that generated the token should be obtained by &text[token.offset_from..token.offset_to]

position: usize

Position, expressed in number of tokens.

text: String

Actual text content of the token.

position_length: usize

Is the length expressed in term of number of original tokens.

Trait Implementations

impl Clone for Token[src]

impl Default for Token[src]

impl Debug for Token[src]

Auto Trait Implementations

impl Send for Token

impl Sync for Token

impl Unpin for Token

impl UnwindSafe for Token

impl RefUnwindSafe for Token

Blanket Implementations

impl<T> Fruit for T where
    T: Send + Downcast
[src]

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

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

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.

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

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

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

impl<T> Erased for T[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]