Struct xim_parser::Reader[][src]

pub struct Reader<'b> { /* fields omitted */ }

Implementations

impl<'b> Reader<'b>[src]

pub fn new(bytes: &'b [u8]) -> Self[src]

pub fn cursor(&self) -> usize[src]

pub fn pad4(&mut self) -> Result<(), ReadError>[src]

pub fn eos(&self) -> ReadError[src]

pub fn invalid_data(&self, ty: &'static str, item: impl ToString) -> ReadError[src]

pub fn u8(&mut self) -> Result<u8, ReadError>[src]

pub fn i16(&mut self) -> Result<i16, ReadError>[src]

pub fn u16(&mut self) -> Result<u16, ReadError>[src]

pub fn u32(&mut self) -> Result<u32, ReadError>[src]

pub fn i32(&mut self) -> Result<i32, ReadError>[src]

pub fn consume(&mut self, len: usize) -> Result<&'b [u8], ReadError>[src]

Auto Trait Implementations

impl<'b> RefUnwindSafe for Reader<'b>

impl<'b> Send for Reader<'b>

impl<'b> Sync for Reader<'b>

impl<'b> Unpin for Reader<'b>

impl<'b> UnwindSafe for Reader<'b>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.