[][src]Function pinyin::to_pinyin_vec

pub fn to_pinyin_vec<F>(input: &str, f: F) -> Vec<&'static str> where
    F: Fn(Pinyin) -> &'static str

将给定输入字符串的拼音通过给定映射函数后存入 Vec

这个函数会跳过任何没有拼音的字符。本函数主要用于测试目的。