pub fn is_valid_ascii<S>(input: S) -> bool
    where
        S: Into<String>,
    {
        input.into().chars().all(|x| {
            x.is_ascii_alphanumeric() == true
                && x.is_ascii_control() == false
                && x.is_ascii_punctuation() == false
        })
    }
//* Analyse bussiness logic - what characters is valid input (Ex.: username, password, email, age)
Analyse bussiness logic - what characters is valid input (Ex.: username, password, email, age)
Analyse bussiness logic - what characters is valid input ( Ex . : username password email age )
pub fn is_valid_ascii<S>(input: S) -> bool
    where
        S: Into<String>,
    {
        input.into().chars().all(|x| {
            x.is_ascii_alphanumeric() == true
                && x.is_ascii_control() == false
                && x.is_ascii_punctuation() == false
        })
    }
pub fn is_valid_ascii < S > ( input : S ) -> bool where S : Into < String > , { input . into ( ) . chars ( ) . all ( | x | { x . is_ascii_alphanumeric ( ) == true && x . is_ascii_control ( ) == false && x . is_ascii_punctuation ( ) == false } ) }
Analyse bussiness logic - what characters is valid input (Ex.
Analyse bussiness logic - what characters is valid input ( Ex .
input
S
input
S