Trait binary_stream::Decodable

source ·
pub trait Decodable {
    // Required method
    fn decode<R: Read + Seek>(
        &mut self,
        reader: &mut BinaryReader<R>,
    ) -> Result<()>;
}
Expand description

Trait for decoding from binary.

Required Methods§

source

fn decode<R: Read + Seek>(&mut self, reader: &mut BinaryReader<R>) -> Result<()>

Decode from the binary reader into self.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Decodable for bool

source§

fn decode<R: Read + Seek>(&mut self, reader: &mut BinaryReader<R>) -> Result<()>

source§

impl Decodable for char

source§

fn decode<R: Read + Seek>(&mut self, reader: &mut BinaryReader<R>) -> Result<()>

source§

impl Decodable for f32

source§

fn decode<R: Read + Seek>(&mut self, reader: &mut BinaryReader<R>) -> Result<()>

source§

impl Decodable for f64

source§

fn decode<R: Read + Seek>(&mut self, reader: &mut BinaryReader<R>) -> Result<()>

source§

impl Decodable for i8

source§

fn decode<R: Read + Seek>(&mut self, reader: &mut BinaryReader<R>) -> Result<()>

source§

impl Decodable for i16

source§

fn decode<R: Read + Seek>(&mut self, reader: &mut BinaryReader<R>) -> Result<()>

source§

impl Decodable for i32

source§

fn decode<R: Read + Seek>(&mut self, reader: &mut BinaryReader<R>) -> Result<()>

source§

impl Decodable for i64

source§

fn decode<R: Read + Seek>(&mut self, reader: &mut BinaryReader<R>) -> Result<()>

source§

impl Decodable for i128

source§

fn decode<R: Read + Seek>(&mut self, reader: &mut BinaryReader<R>) -> Result<()>

source§

impl Decodable for isize

source§

fn decode<R: Read + Seek>(&mut self, reader: &mut BinaryReader<R>) -> Result<()>

source§

impl Decodable for u8

source§

fn decode<R: Read + Seek>(&mut self, reader: &mut BinaryReader<R>) -> Result<()>

source§

impl Decodable for u16

source§

fn decode<R: Read + Seek>(&mut self, reader: &mut BinaryReader<R>) -> Result<()>

source§

impl Decodable for u32

source§

fn decode<R: Read + Seek>(&mut self, reader: &mut BinaryReader<R>) -> Result<()>

source§

impl Decodable for u64

source§

fn decode<R: Read + Seek>(&mut self, reader: &mut BinaryReader<R>) -> Result<()>

source§

impl Decodable for u128

source§

fn decode<R: Read + Seek>(&mut self, reader: &mut BinaryReader<R>) -> Result<()>

source§

impl Decodable for usize

source§

fn decode<R: Read + Seek>(&mut self, reader: &mut BinaryReader<R>) -> Result<()>

source§

impl Decodable for String

source§

fn decode<R: Read + Seek>(&mut self, reader: &mut BinaryReader<R>) -> Result<()>

source§

impl<T> Decodable for Option<T>
where T: Decodable + Default,

source§

fn decode<R: Read + Seek>(&mut self, reader: &mut BinaryReader<R>) -> Result<()>

source§

impl<T> Decodable for Vec<T>
where T: Decodable + Default + Send + Sync,

source§

fn decode<R: Read + Seek>(&mut self, reader: &mut BinaryReader<R>) -> Result<()>

Implementors§