pub struct DateOfBirthRecognizer;Expand description
Recognizes dates that are likely dates of birth from nearby birth context.
§Examples
use cloakrs_core::{EntityType, Recognizer};
use cloakrs_patterns::DateOfBirthRecognizer;
let findings = DateOfBirthRecognizer.scan("DOB: 1980-04-23");
assert_eq!(findings[0].entity_type, EntityType::DateOfBirth);Trait Implementations§
Source§impl Clone for DateOfBirthRecognizer
impl Clone for DateOfBirthRecognizer
Source§fn clone(&self) -> DateOfBirthRecognizer
fn clone(&self) -> DateOfBirthRecognizer
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 DateOfBirthRecognizer
impl Debug for DateOfBirthRecognizer
Source§impl Default for DateOfBirthRecognizer
impl Default for DateOfBirthRecognizer
Source§fn default() -> DateOfBirthRecognizer
fn default() -> DateOfBirthRecognizer
Returns the “default value” for a type. Read more
Source§impl Recognizer for DateOfBirthRecognizer
impl Recognizer for DateOfBirthRecognizer
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 DateOfBirthRecognizer
Auto Trait Implementations§
impl Freeze for DateOfBirthRecognizer
impl RefUnwindSafe for DateOfBirthRecognizer
impl Send for DateOfBirthRecognizer
impl Sync for DateOfBirthRecognizer
impl Unpin for DateOfBirthRecognizer
impl UnsafeUnpin for DateOfBirthRecognizer
impl UnwindSafe for DateOfBirthRecognizer
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