Struct phonenumber::metadata::DATABASE
source · pub struct DATABASE { /* private fields */ }
Expand description
The Google provided metadata database, used as default.
Methods from Deref<Target = Database>§
sourcepub fn cache(&self) -> Arc<Mutex<RegexCache>>
pub fn cache(&self) -> Arc<Mutex<RegexCache>>
Get the regular expression cache.
sourcepub fn by_code<Q>(&self, key: &Q) -> Option<Vec<&Metadata>>
pub fn by_code<Q>(&self, key: &Q) -> Option<Vec<&Metadata>>
Get metadata entries by country code.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DEFAULT
impl RefUnwindSafe for DEFAULT
impl Send for DEFAULT
impl Sync for DEFAULT
impl Unpin for DEFAULT
impl UnwindSafe for DEFAULT
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more