[][src]Trait byte_trie::BytesKey

pub trait BytesKey: Display {
    fn new(vec: Vec<u8>) -> Self;
fn from_bytes(bytes: &[u8]) -> Self;
fn get(&self) -> &[u8];
fn get_mut(&mut self) -> &mut Vec<u8>; fn compare(&self, other: &Self) -> KeyMatch { ... } }

A way of representing a BytesNode key u8 inside a Vec<u8>.

Keeps track of u8 representation and serialization presentation.

Required methods

fn new(vec: Vec<u8>) -> Self

fn from_bytes(bytes: &[u8]) -> Self

fn get(&self) -> &[u8]

fn get_mut(&mut self) -> &mut Vec<u8>

Loading content...

Provided methods

fn compare(&self, other: &Self) -> KeyMatch

Loading content...

Implementors

impl BytesKey for BitKey[src]

fn compare(&self, other: &Self) -> KeyMatch[src]

impl BytesKey for ByteKey[src]

fn compare(&self, other: &Self) -> KeyMatch[src]

impl BytesKey for NibbleKey[src]

fn compare(&self, other: &Self) -> KeyMatch[src]

Loading content...