Struct CommonRegex

Source
pub struct CommonRegex<'a> {
Show 27 fields pub dates: Vec<&'a str>, pub times: Vec<&'a str>, pub phones: Vec<&'a str>, pub phones_with_exts: Vec<&'a str>, pub links: Vec<&'a str>, pub emails: Vec<&'a str>, pub ipv4s: Vec<&'a str>, pub ipv6s: Vec<&'a str>, pub prices: Vec<&'a str>, pub hex_colors: Vec<&'a str>, pub credit_cards: Vec<&'a str>, pub visas: Vec<&'a str>, pub mastercards: Vec<&'a str>, pub btc_addresses: Vec<&'a str>, pub street_addresses: Vec<&'a str>, pub zip_codes: Vec<&'a str>, pub po_boxs: Vec<&'a str>, pub ssns: Vec<&'a str>, pub md5s: Vec<&'a str>, pub sha1s: Vec<&'a str>, pub sha2s: Vec<&'a str>, pub guids: Vec<&'a str>, pub isbn13s: Vec<&'a str>, pub isbn10s: Vec<&'a str>, pub mac_addresses: Vec<&'a str>, pub ibans: Vec<&'a str>, pub gitrepos: Vec<&'a str>,
}

Fields§

§dates: Vec<&'a str>§times: Vec<&'a str>§phones: Vec<&'a str>§phones_with_exts: Vec<&'a str>§links: Vec<&'a str>§emails: Vec<&'a str>§ipv4s: Vec<&'a str>§ipv6s: Vec<&'a str>§prices: Vec<&'a str>§hex_colors: Vec<&'a str>§credit_cards: Vec<&'a str>§visas: Vec<&'a str>§mastercards: Vec<&'a str>§btc_addresses: Vec<&'a str>§street_addresses: Vec<&'a str>§zip_codes: Vec<&'a str>§po_boxs: Vec<&'a str>§ssns: Vec<&'a str>§md5s: Vec<&'a str>§sha1s: Vec<&'a str>§sha2s: Vec<&'a str>§guids: Vec<&'a str>§isbn13s: Vec<&'a str>§isbn10s: Vec<&'a str>§mac_addresses: Vec<&'a str>§ibans: Vec<&'a str>§gitrepos: Vec<&'a str>

Implementations§

Source§

impl<'a> CommonRegex<'a>

Source

pub fn new() -> CommonRegex<'a>

Source

pub fn common_regex(&self, text: &'a str) -> CommonRegex<'a>

Trait Implementations§

Source§

impl<'a> Debug for CommonRegex<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a> Freeze for CommonRegex<'a>

§

impl<'a> RefUnwindSafe for CommonRegex<'a>

§

impl<'a> Send for CommonRegex<'a>

§

impl<'a> Sync for CommonRegex<'a>

§

impl<'a> Unpin for CommonRegex<'a>

§

impl<'a> UnwindSafe for CommonRegex<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.