Trait Unicode

Source
pub trait Unicode {
    // Required method
    fn to_unicode(&self) -> Vec<u8> ;
}
Expand description

Use to to_unicode function for String

Required Methods§

Source

fn to_unicode(&self) -> Vec<u8>

Implementations on Foreign Types§

Source§

impl Unicode for String

Source§

fn to_unicode(&self) -> Vec<u8>

Convert any string into utf-16le string

§Example
use rdp::model::unicode::Unicode;
let s = "foo".to_string();
assert_eq!(s.to_unicode(), [102, 0, 111, 0, 111, 0])

Implementors§