pub struct MacAddressRecognizer;Expand description
Recognizes MAC addresses in common colon, hyphen, and dotted forms.
§Examples
use cloakrs_core::{EntityType, Recognizer};
use cloakrs_patterns::MacAddressRecognizer;
let findings = MacAddressRecognizer.scan("mac 00:1A:2B:3C:4D:5E");
assert_eq!(findings[0].entity_type, EntityType::MacAddress);Trait Implementations§
Source§impl Clone for MacAddressRecognizer
impl Clone for MacAddressRecognizer
Source§fn clone(&self) -> MacAddressRecognizer
fn clone(&self) -> MacAddressRecognizer
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 MacAddressRecognizer
impl Debug for MacAddressRecognizer
Source§impl Default for MacAddressRecognizer
impl Default for MacAddressRecognizer
Source§fn default() -> MacAddressRecognizer
fn default() -> MacAddressRecognizer
Returns the “default value” for a type. Read more
Source§impl Recognizer for MacAddressRecognizer
impl Recognizer for MacAddressRecognizer
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 MacAddressRecognizer
Auto Trait Implementations§
impl Freeze for MacAddressRecognizer
impl RefUnwindSafe for MacAddressRecognizer
impl Send for MacAddressRecognizer
impl Sync for MacAddressRecognizer
impl Unpin for MacAddressRecognizer
impl UnsafeUnpin for MacAddressRecognizer
impl UnwindSafe for MacAddressRecognizer
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