pub fn valid(identifier: &String) -> bool
	{
		let mut iter = identifier.chars();
		if let Some(c) = iter.next()
		{
			if c.is_alphabetic()
			{
				return identifier.chars().all(|c| (c.is_alphanumeric() || c == '_'));
			}
		}
		false
	}
/// Returns true if the given string is valid as a code-compatible identifier.
Returns true if the given string is valid as a code-compatible identifier.
Returns true if the given string is valid as a code - compatible identifier .
pub fn valid(identifier: &String) -> bool
	{
		let mut iter = identifier.chars();
		if let Some(c) = iter.next()
		{
			if c.is_alphabetic()
			{
				return identifier.chars().all(|c| (c.is_alphanumeric() || c == '_'));
			}
		}
		false
	}
pub fn valid ( identifier : & String ) -> bool { let mut iter = identifier . chars ( ) ; if let Some ( c ) = iter . next ( ) { if c . is_alphabetic ( ) { return identifier . chars ( ) . all ( | c | ( c . is_alphanumeric ( ) || c == '_' ) ) ; } } false }
Returns true if the given string is valid as a code-compatible identifier.
Returns true if the given string is valid as a code - compatible identifier .
identifier
&String
identifier
&String