UnPackTwInt

Trait UnPackTwInt 

Source
pub trait UnPackTwInt: Read {
    // Required method
    fn unpack(&mut self) -> Result<i32>;
}
Expand description

Trait implemented by buffers holding a teeworlds variable int.

This trait is more of a convenience to allow writing let data = buff.unpack()?;

Required Methods§

Source

fn unpack(&mut self) -> Result<i32>

Unpack this reader holding a teeworlds variable int to a i32.

§Errors

Returns Err if there is an error reading from Self

Implementors§

Source§

impl<T: Read + ?Sized> UnPackTwInt for T