Trait Decodable

Source
pub trait Decodable: Sized {
    // Required method
    fn decode(bf: &mut Bufferfish) -> Result<Self, BufferfishError>;
}
Expand description

Types implementing this trait are able to be decoded from a Bufferfish.

Required Methods§

Source

fn decode(bf: &mut Bufferfish) -> Result<Self, BufferfishError>

Decode the type from a Bufferfish.

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§

impl Decodable for i8

Source§

impl Decodable for i16

Source§

impl Decodable for i32

Source§

impl Decodable for u8

Source§

impl Decodable for u16

Source§

impl Decodable for u32

Source§

impl Decodable for String

Source§

impl<T: Decodable> Decodable for Vec<T>

Implementors§