Trait blaze_pk::codec::Decodable

source ·
pub trait Decodable: Sized {
    // Required method
    fn decode(reader: &mut TdfReader<'_>) -> DecodeResult<Self>;
}
Expand description

Trait for something that can be decoded from a TdfReader

Required Methods§

source

fn decode(reader: &mut TdfReader<'_>) -> DecodeResult<Self>

Function for implementing decoding of Self from the provided Reader. Will return None if self cannot be decoded

reader The reader to decode from

Implementations on Foreign Types§

source§

impl Decodable for f32

source§

fn decode(reader: &mut TdfReader<'_>) -> DecodeResult<Self>

source§

impl Decodable for i16

source§

fn decode(reader: &mut TdfReader<'_>) -> DecodeResult<Self>

source§

impl Decodable for u8

source§

fn decode(reader: &mut TdfReader<'_>) -> DecodeResult<Self>

source§

impl Decodable for usize

source§

fn decode(reader: &mut TdfReader<'_>) -> DecodeResult<Self>

source§

impl Decodable for u16

source§

fn decode(reader: &mut TdfReader<'_>) -> DecodeResult<Self>

source§

impl Decodable for bool

source§

fn decode(reader: &mut TdfReader<'_>) -> DecodeResult<Self>

source§

impl Decodable for i64

source§

fn decode(reader: &mut TdfReader<'_>) -> DecodeResult<Self>

source§

impl Decodable for u32

source§

fn decode(reader: &mut TdfReader<'_>) -> DecodeResult<Self>

source§

impl Decodable for i8

source§

fn decode(reader: &mut TdfReader<'_>) -> DecodeResult<Self>

source§

impl Decodable for isize

source§

fn decode(reader: &mut TdfReader<'_>) -> DecodeResult<Self>

source§

impl<C> Decodable for Vec<C>where C: Decodable + ValueType,

source§

fn decode(reader: &mut TdfReader<'_>) -> DecodeResult<Self>

source§

impl Decodable for u64

source§

fn decode(reader: &mut TdfReader<'_>) -> DecodeResult<Self>

source§

impl Decodable for i32

source§

fn decode(reader: &mut TdfReader<'_>) -> DecodeResult<Self>

source§

impl Decodable for String

source§

fn decode(reader: &mut TdfReader<'_>) -> DecodeResult<Self>

Implementors§

source§

impl Decodable for Blob

source§

impl<A, B> Decodable for Pair<A, B>where A: VarInt, B: VarInt,

source§

impl<A, B, C> Decodable for Triple<A, B, C>where A: VarInt, B: VarInt, C: VarInt,

source§

impl<C> Decodable for Union<C>where C: Decodable + ValueType,

source§

impl<C> Decodable for VarIntList<C>where C: VarInt,

source§

impl<K, V> Decodable for TdfMap<K, V>where K: Decodable + ValueType, V: Decodable + ValueType,