[][src]Struct twitter_text::extractor::Extractor

pub struct Extractor { /* fields omitted */ }

An Extract implementation that does no validation (length checks, validity, etc).

Implementations

impl Extractor[src]

pub fn new() -> Extractor[src]

Create a new extractor that extracts URLs without a protocol.

pub fn extract_urls(&self, s: &str) -> Vec<String>[src]

Extract a vector of URLs as String objects.

Trait Implementations

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

type T = Vec<Entity<'a>>

Extractor returns a vector of entities with no validation data.

type Mention = Option<Entity<'a>>

Extractor returns a single mention entity with no validation data.

Auto Trait Implementations

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.