Type Definition blaze_pk::types::Pair

source ·
pub type Pair<A, B> = (A, B);
Expand description

Pair type alias. (Note Pairs should only ever be used with VarInts)

Trait Implementations§

source§

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

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 Read more
source§

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

source§

fn encode(&self, output: &mut TdfWriter)

Function for implementing encoding of Self to the provided vec of bytes Read more
source§

fn encode_bytes(&self) -> Vec<u8>

Shortcut function for encoding self directly to a Vec of bytes
source§

impl<A, B> ValueType for Pair<A, B>

source§

fn value_type() -> TdfType

The type of tdf value this is