[][src]Struct grammers_tl_types::Cursor

pub struct Cursor<'a> { /* fields omitted */ }

Re-implement Cursor to only work over in-memory buffers and greatly narrow the possible error cases.

Implementations

impl<'a> Cursor<'a>[src]

pub fn from_slice(buf: &'a [u8]) -> Self[src]

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

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

pub fn read_exact(&mut self, buf: &mut [u8]) -> Result<(), DeserializeError>[src]

pub fn read_to_end(
    &mut self,
    buf: &mut Vec<u8>
) -> Result<usize, DeserializeError>
[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Cursor<'a>

impl<'a> Send for Cursor<'a>

impl<'a> Sync for Cursor<'a>

impl<'a> Unpin for Cursor<'a>

impl<'a> UnwindSafe for Cursor<'a>

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.