Trait blaze_pk::codec::ValueType

source ·
pub trait ValueType {
    // Required method
    fn value_type() -> TdfType;
}
Expand description

Trait for a type that conforms to one of the standard TdfTypes used on structures that implement Decodable or Encodable to allow them to be encoded as tag fields

Required Methods§

source

fn value_type() -> TdfType

The type of tdf value this is

Implementations on Foreign Types§

source§

impl ValueType for i32

source§

impl ValueType for isize

source§

impl ValueType for &str

source§

impl ValueType for f32

source§

impl ValueType for u64

source§

impl<C> ValueType for Vec<C>

source§

impl ValueType for bool

source§

impl ValueType for String

source§

impl ValueType for i8

source§

impl ValueType for u32

source§

impl ValueType for i16

source§

impl ValueType for u16

source§

impl<C> ValueType for &[C]where C: Encodable + ValueType,

source§

impl ValueType for u8

source§

impl ValueType for usize

source§

impl ValueType for i64

Implementors§

source§

impl ValueType for Blob

source§

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

source§

impl<A, B, C> ValueType for Triple<A, B, C>

source§

impl<C> ValueType for Union<C>

source§

impl<C> ValueType for VarIntList<C>

source§

impl<K, V> ValueType for TdfMap<K, V>