Trait fatfs::OemCpConverter

source ·
pub trait OemCpConverter: Debug {
    fn decode(&self, oem_char: u8) -> char;
    fn encode(&self, uni_char: char) -> Option<u8>;
}
Expand description

An OEM code page encoder/decoder.

Provides a custom implementation for a short name encoding/decoding. Default implementation changes all non-ASCII characters to the replacement character (U+FFFD). OemCpConverter is specified by the oem_cp_converter property in FsOptions struct.

Required Methods§

Implementors§