pub fn is_match(&self, value: &str) -> bool {
		if !self.possible_length.is_empty() &&
		   !self.possible_length.contains(&(value.len() as u16))
		{
			return false;
		}

		self.national_number.find(value).map(|m| m.start() == 0)
			.unwrap_or(false)
	}
/// Check if the descriptor matches the given national number.
Check if the descriptor matches the given national number.
Check if the descriptor matches the given national number .
pub fn is_match(&self, value: &str) -> bool {
		if !self.possible_length.is_empty() &&
		   !self.possible_length.contains(&(value.len() as u16))
		{
			return false;
		}
		self.national_number.find(value).map(|m| m.start() == 0)
			.unwrap_or(false)
	}
pub fn is_match ( & self , value : & str ) -> bool { if ! self . possible_length . is_empty ( ) && ! self . possible_length . contains ( & ( value . len ( ) as u16 ) ) { return false ; } self . national_number . find ( value ) . map ( | m | m . start ( ) == 0 ) . unwrap_or ( false ) }
Check if the descriptor matches the given national number.
Check if the descriptor matches the given national number .
&self
value
&str