pub trait FromCursor {
    fn from_cursor(cursor: &mut Cursor<&[u8]>, version: Version) -> Result<Self>
   where
        Self: Sized
; }
Expand description

FromCursor should be used to get parsed structure from an io:Cursor which bound to an array of bytes.

Required Methods

Tries to parse Self from a cursor of bytes.

Implementations on Foreign Types

Implementors