pub fn metadata<'a>(&self, database: &'a Database) -> Option<&'a Metadata> {
		match try_opt!(None; validator::source_for(database, self.code.value(), &self.national.to_string())) {
			Left(region) =>
				database.by_id(region.as_ref()),

			Right(code) =>
				database.by_code(&code).and_then(|m| m.into_iter().next()),
		}
	}
/// Get the metadata that applies to this phone number from the given
/// database.
Get the metadata that applies to this phone number from the given
database.
Get the metadata that applies to this phone number from the given database .
pub fn metadata<'a>(&self, database: &'a Database) -> Option<&'a Metadata> {
		match try_opt!(None; validator::source_for(database, self.code.value(), &self.national.to_string())) {
			Left(region) =>
				database.by_id(region.as_ref()),
			Right(code) =>
				database.by_code(&code).and_then(|m| m.into_iter().next()),
		}
	}
pub fn metadata < ' a > ( & self , database : & ' a Database ) -> Option < & ' a Metadata > { match try_opt ! ( None validator source_for ( database self code value ( ) self national to_string ( ) ) ) { Left ( region ) => database . by_id ( region . as_ref ( ) ) , Right ( code ) => database . by_code ( & code ) . and_then ( | m | m . into_iter ( ) . next ( ) ) , } }
Get the metadata that applies to this phone number from the given
database.
Get the metadata that applies to this phone number from the given database .
&self
database
&'a Database