/// Takes an input word and returns the corresponding T9 digits needed to return the word.
///
/// See [wikipedia](https://en.wikipedia.org/wiki/T9_%28predictive_text%29) for more information about T9.
Takes an input word and returns the corresponding T9 digits needed to return the word.
See [wikipedia] for more information about T9.
Takes an input word and returns the corresponding T9 digits needed to return the word . See [ wikipedia ] for more information about T9 .
pub fn digits_for<S>(input: S) -> Digits
where
    S: Into<String>,
{
    let input = input.into();
    let digits: Vec<Digit> = input
        .chars()
        .filter(|c| c.is_ascii())
        .map(Digit::from)
        .collect();
    Digits::from(digits)
}
pub fn digits_for < S > ( input : S ) -> Digits where S : Into < String > , { let input = input . into ( ) ; let digits : Vec < Digit > = input . chars ( ) . filter ( | c | c . is_ascii ( ) ) . map ( Digit :: from ) . collect ( ) ; Digits :: from ( digits ) }
Takes an input word and returns the corresponding T9 digits needed to return the word.
Takes an input word and returns the corresponding T9 digits needed to return the word .
input
S