pub struct PhysicalAddressRecognizer;Expand description
Recognizes physical street addresses with a US-first rule-based pattern.
§Examples
use cloakrs_core::{EntityType, Recognizer};
use cloakrs_patterns::PhysicalAddressRecognizer;
let findings = PhysicalAddressRecognizer.scan("ship to 123 Main St, Springfield, IL 62704");
assert_eq!(findings[0].entity_type, EntityType::PhysicalAddress);Trait Implementations§
Source§impl Clone for PhysicalAddressRecognizer
impl Clone for PhysicalAddressRecognizer
Source§fn clone(&self) -> PhysicalAddressRecognizer
fn clone(&self) -> PhysicalAddressRecognizer
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 PhysicalAddressRecognizer
impl Debug for PhysicalAddressRecognizer
Source§impl Default for PhysicalAddressRecognizer
impl Default for PhysicalAddressRecognizer
Source§fn default() -> PhysicalAddressRecognizer
fn default() -> PhysicalAddressRecognizer
Returns the “default value” for a type. Read more
Source§impl Recognizer for PhysicalAddressRecognizer
impl Recognizer for PhysicalAddressRecognizer
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 PhysicalAddressRecognizer
Auto Trait Implementations§
impl Freeze for PhysicalAddressRecognizer
impl RefUnwindSafe for PhysicalAddressRecognizer
impl Send for PhysicalAddressRecognizer
impl Sync for PhysicalAddressRecognizer
impl Unpin for PhysicalAddressRecognizer
impl UnsafeUnpin for PhysicalAddressRecognizer
impl UnwindSafe for PhysicalAddressRecognizer
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