pub struct CryptoAddressRecognizer;Expand description
Recognizes common Bitcoin and Ethereum wallet address shapes.
§Examples
use cloakrs_core::{EntityType, Recognizer};
use cloakrs_patterns::CryptoAddressRecognizer;
let findings = CryptoAddressRecognizer.scan("eth 0x52908400098527886E0F7030069857D2E4169EE7");
assert_eq!(findings[0].entity_type, EntityType::CryptoAddress);Trait Implementations§
Source§impl Clone for CryptoAddressRecognizer
impl Clone for CryptoAddressRecognizer
Source§fn clone(&self) -> CryptoAddressRecognizer
fn clone(&self) -> CryptoAddressRecognizer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CryptoAddressRecognizer
impl Debug for CryptoAddressRecognizer
Source§impl Default for CryptoAddressRecognizer
impl Default for CryptoAddressRecognizer
Source§fn default() -> CryptoAddressRecognizer
fn default() -> CryptoAddressRecognizer
Returns the “default value” for a type. Read more
Source§impl Recognizer for CryptoAddressRecognizer
impl Recognizer for CryptoAddressRecognizer
Source§fn entity_type(&self) -> EntityType
fn entity_type(&self) -> EntityType
The entity type this recognizer detects.
Source§fn supported_locales(&self) -> &[Locale]
fn supported_locales(&self) -> &[Locale]
Locales this recognizer applies to. Empty means universal.
impl Copy for CryptoAddressRecognizer
Auto Trait Implementations§
impl Freeze for CryptoAddressRecognizer
impl RefUnwindSafe for CryptoAddressRecognizer
impl Send for CryptoAddressRecognizer
impl Sync for CryptoAddressRecognizer
impl Unpin for CryptoAddressRecognizer
impl UnsafeUnpin for CryptoAddressRecognizer
impl UnwindSafe for CryptoAddressRecognizer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more