[−][src]Struct twitter_text::extractor::ValidatingExtractor
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]
configuration: &'a Configuration,
s: &str
) -> ValidatingExtractor<'a>
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.
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) -> Self::T
[src]
fn create_result(
&self,
s: &'a str,
count: usize,
scanned: &mut Vec<UnprocessedEntity<'a>>
) -> ExtractResult<'a>
[src]
&self,
s: &'a str,
count: usize,
scanned: &mut Vec<UnprocessedEntity<'a>>
) -> ExtractResult<'a>
fn extract_reply_username(&self, s: &'a str) -> MentionResult<'a>
[src]
fn mention_result(
&self,
s: &'a str,
pair: Option<Pair<'a, Rule>>
) -> MentionResult<'a>
[src]
&self,
s: &'a str,
pair: Option<Pair<'a, Rule>>
) -> MentionResult<'a>
fn empty_result(&self) -> ExtractResult<'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<'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]
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>,