[−][src]Struct twitter_text::extractor::Extractor
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.
fn get_extract_url_without_protocol(&self) -> bool
[src]
fn set_extract_url_without_protocol(
&mut self,
extract_url_without_protocol: bool
)
[src]
&mut self,
extract_url_without_protocol: bool
)
fn extract(&self, s: &'a str, r_match: fn(_: Rule) -> bool) -> Vec<Entity<'a>>
[src]
fn create_result(
&self,
s: &'a str,
count: usize,
scanned: &mut Vec<UnprocessedEntity<'a>>
) -> Vec<Entity<'a>>
[src]
&self,
s: &'a str,
count: usize,
scanned: &mut Vec<UnprocessedEntity<'a>>
) -> Vec<Entity<'a>>
fn extract_reply_username(&self, s: &'a str) -> Option<Entity<'a>>
[src]
fn mention_result(
&self,
s: &'a str,
entity: Option<Pair<'a, Rule>>
) -> Option<Entity<'a>>
[src]
&self,
s: &'a str,
entity: Option<Pair<'a, Rule>>
) -> Option<Entity<'a>>
fn empty_result(&self) -> Vec<Entity<'a>>
[src]
fn extract_impl(&self, s: &'a str, r_match: fn(_: Rule) -> bool) -> Self::T
[src]
fn extract_urls_with_indices(&self, s: &'a str) -> Self::T
[src]
fn extract_hashtags(&self, s: &'a str) -> Self::T
[src]
fn extract_cashtags(&self, s: &'a str) -> Self::T
[src]
fn extract_mentioned_screennames(&self, s: &'a str) -> Self::T
[src]
fn extract_mentioned_screennames_with_indices(&self, s: &'a str) -> Self::T
[src]
fn extract_mentions_or_lists_with_indices(&self, s: &'a str) -> Self::T
[src]
fn extract_reply_username_impl(&self, s: &'a str) -> Self::Mention
[src]
fn extract_entities_with_indices(&self, s: &'a str) -> Self::T
[src]
fn extract_scan(&self, s: &'a str) -> Self::T
[src]
fn entity_from_pair(
&self,
ue: UnprocessedEntity<'a>,
start: i32,
end: i32
) -> Option<Entity<'a>>
[src]
&self,
ue: UnprocessedEntity<'a>,
start: i32,
end: i32
) -> Option<Entity<'a>>
Auto Trait Implementations
impl RefUnwindSafe for Extractor
impl Send for Extractor
impl Sync for Extractor
impl Unpin for Extractor
impl UnwindSafe for Extractor
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,
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, 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.
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>,