Enum utf16_ext::AutoWriter
[−]
[src]
pub enum AutoWriter<W> { Little(W), Big(W), }
A writer that will store whether to write in little or big endian
Variants
Little(W)
Little endian writer
Big(W)
Big endian writer
Methods
impl<W: Utf16WriteExt> AutoWriter<W>
[src]
fn new_little(writer: W) -> Result<Self, Error>
[src]
Writes a BOM in the writer and returns a new AutoWriter
in little endian
fn new_big(writer: W) -> Result<Self, Error>
[src]
Writes a BOM in the writer and returns a new AutoWriter
in big endian
fn write_shorts(&mut self, buf: &[u16]) -> Result<usize, Error>
[src]
Mirror of Utf16WriteExt::write_shorts
without the type parameter for endianness
fn write_all_shorts(&mut self, buf: &[u16]) -> Result<(), Error>
[src]
Mirror of Utf16WriteExt::write_all_shorts
without the type parameter for endianness
fn write_utf16_string<'a>(
&mut self,
s: &'a str
) -> Result<Utf16Written<'a>, Error>
[src]
&mut self,
s: &'a str
) -> Result<Utf16Written<'a>, Error>
Mirror of Utf16WriteExt::write_utf16_string
without the type parameter for endianness