Type Definition blaze_pk::types::Triple

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

Triple type alias. (Note Triples should only ever be used with VarInts)

Trait Implementations§

source§

impl<A, B, C> Decodable for Triple<A, B, C>where A: VarInt, B: VarInt, C: 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, C> Encodable for Triple<A, B, C>where A: VarInt, B: VarInt, C: 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, C> ValueType for Triple<A, B, C>

source§

fn value_type() -> TdfType

The type of tdf value this is