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_id<Q>(&self, key: &Q) -> Option<&Metadata>where
Q: ?Sized + Hash + Eq,
String: Borrow<Q>,
pub fn by_id<Q>(&self, key: &Q) -> Option<&Metadata>where Q: ?Sized + Hash + Eq, String: Borrow<Q>,
Get a metadata entry by country ID.
Trait Implementations§
Auto Trait Implementations§
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