Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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§