use UCSChar;pubtraitCharExtend{fnto_char_vec(&self)->Vec<char>;fnto_u16_vec(&self)->Vec<u16>;fnto_u32_vec(&self)->Vec<u32>;}implCharExtend forstr{fnto_char_vec(&self)->Vec<char>{self.chars().map(|c|c).collect()}fnto_u16_vec(&self)->Vec<u16>{self.encode_utf16().map(|scalar|u16::from_scalar(scalar )).collect()}fnto_u32_vec(&self)->Vec<u32>{self.chars().map(|c|c asu32).collect()}}