Enum utf16_ext::AutoEndianReader
[−]
[src]
pub enum AutoEndianReader<R> {
Little(R),
Big(R),
}A reader that will store whether to read in little or big endian
Variants
Little(R)Little endian reader
Big(R)Big endian reader
Methods
impl<R> AutoEndianReader<R>[src]
fn new_little(inner: R) -> Self[src]
Makes a new AutoEndianReader in little endian
fn new_big(inner: R) -> Self[src]
Makes a new AutoEndianReader in big endian
fn is_little(&self) -> bool[src]
Returns true if this reader is little endian
fn is_big(&self) -> bool[src]
Returns true if this reader is big endian
impl<R: Utf16ReadExt> AutoEndianReader<R>[src]
fn new_auto_bom(inner: R) -> Result<Self, Error>[src]
Reads a u16 to detect the endianness
If the value isn't a valid bom (U+FEFF), an error is thrown
fn read_u16(&mut self) -> Result<u16, Error>[src]
Mirror of Utf16ReadExt::read_u16 without the type parameter for endianness
fn shorts(self) -> AutoEndianShorts<R> where
Self: Sized, [src]
Self: Sized,
Mirror of Utf16ReadExt::shorts without the type parameter for endianness
fn utf16_chars(self) -> AutoEndianChars<R> where
Self: Sized, [src]
Self: Sized,
Mirror of Utf16ReadExt::utf16_chars without the type parameter for endianness
fn read_utf16_line(&mut self, buf: &mut String) -> Result<usize, Error>[src]
Mirror of Utf16ReadExt::read_utf16_line without the type parameter for endianness
fn utf16_lines(self) -> AutoEndianLines<R> where
Self: Sized, [src]
Self: Sized,
Mirror of Utf16ReadExt::utf16_lines without the type parameter for endianness