[][src]Struct twitter_text::extractor::ValidatingExtractor

pub struct ValidatingExtractor<'a> { /* fields omitted */ }

An Extract implementation that extracts entities and provides TwitterTextParseResults validation data.

Implementations

impl<'a> ValidatingExtractor<'a>[src]

pub fn new(configuration: &Configuration) -> ValidatingExtractor[src]

Create a new Extractor. ValidatingExtractor::prep_input must be called prior to extract.

pub fn prep_input(&mut self, s: &str) -> String[src]

Initialize the ValidatingExtractor text length data.

pub fn new_with_nfc_input(
    configuration: &'a Configuration,
    s: &str
) -> ValidatingExtractor<'a>
[src]

Create a new Extractor from text that is already nfc-normalized. There's no need to call ValidatingExtractor::prep_input for this text.

Trait Implementations

impl<'a> Extract<'a> for ValidatingExtractor<'a>[src]

type T = ExtractResult<'a>

The result type returned from the various extract methods.

type Mention = MentionResult<'a>

The result type returned from the various mention extract methods.

Auto Trait Implementations

impl<'a> RefUnwindSafe for ValidatingExtractor<'a>

impl<'a> Send for ValidatingExtractor<'a>

impl<'a> Sync for ValidatingExtractor<'a>

impl<'a> Unpin for ValidatingExtractor<'a>

impl<'a> UnwindSafe for ValidatingExtractor<'a>

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, 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.