DictKey

Trait DictKey 

Source
pub trait DictKey: Sized {
    const BITS: u16;

    // Required method
    fn from_raw_data(raw_data: &[u8; 128]) -> Option<Self>;
}
Expand description

Type which can be used as a dictionary key.

Required Associated Constants§

Source

const BITS: u16

Length in bits for a dictionary key.

Required Methods§

Source

fn from_raw_data(raw_data: &[u8; 128]) -> Option<Self>

Creates a key from a raw builder data.

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 DictKey for (u64, u32)

Source§

const BITS: u16 = 96u16

Source§

fn from_raw_data(d: &[u8; 128]) -> Option<Self>

Source§

impl DictKey for bool

Source§

const BITS: u16 = 1u16

Source§

fn from_raw_data(d: &[u8; 128]) -> Option<Self>

Source§

impl DictKey for i8

Source§

const BITS: u16 = 8u16

Source§

fn from_raw_data(d: &[u8; 128]) -> Option<Self>

Source§

impl DictKey for i16

Source§

const BITS: u16 = 16u16

Source§

fn from_raw_data(d: &[u8; 128]) -> Option<Self>

Source§

impl DictKey for i32

Source§

const BITS: u16 = 32u16

Source§

fn from_raw_data(d: &[u8; 128]) -> Option<Self>

Source§

impl DictKey for i64

Source§

const BITS: u16 = 64u16

Source§

fn from_raw_data(d: &[u8; 128]) -> Option<Self>

Source§

impl DictKey for i128

Source§

const BITS: u16 = 128u16

Source§

fn from_raw_data(d: &[u8; 128]) -> Option<Self>

Source§

impl DictKey for u8

Source§

const BITS: u16 = 8u16

Source§

fn from_raw_data(d: &[u8; 128]) -> Option<Self>

Source§

impl DictKey for u16

Source§

const BITS: u16 = 16u16

Source§

fn from_raw_data(d: &[u8; 128]) -> Option<Self>

Source§

impl DictKey for u32

Source§

const BITS: u16 = 32u16

Source§

fn from_raw_data(d: &[u8; 128]) -> Option<Self>

Source§

impl DictKey for u64

Source§

const BITS: u16 = 64u16

Source§

fn from_raw_data(d: &[u8; 128]) -> Option<Self>

Source§

impl DictKey for u128

Source§

const BITS: u16 = 128u16

Source§

fn from_raw_data(d: &[u8; 128]) -> Option<Self>

Source§

impl DictKey for [u8; 16]

Source§

const BITS: u16 = 128u16

Source§

fn from_raw_data(d: &[u8; 128]) -> Option<Self>

Source§

impl DictKey for [u8; 20]

Source§

const BITS: u16 = 160u16

Source§

fn from_raw_data(d: &[u8; 128]) -> Option<Self>

Source§

impl DictKey for [u8; 32]

Source§

const BITS: u16 = 256u16

Source§

fn from_raw_data(d: &[u8; 128]) -> Option<Self>

Implementors§

Source§

impl DictKey for HashBytes

Source§

const BITS: u16 = 256u16

Source§

impl DictKey for ShardIdentFull

Source§

const BITS: u16 = 96u16

Source§

impl DictKey for StdAddr

Source§

const BITS: u16 = 267u16

Source§

impl DictKey for Uint9

Source§

const BITS: u16 = 9u16

Source§

impl DictKey for Uint12

Source§

const BITS: u16 = 12u16

Source§

impl DictKey for Uint15

Source§

const BITS: u16 = 15u16