pub trait BytesComparableScore {
    // Required methods
    fn to_bytes(&self) -> Vec<u8>;
    fn from_bytes(b: &[u8]) -> Self
       where Self: Sized;
}

Required Methods§

source

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

source

fn from_bytes(b: &[u8]) -> Selfwhere Self: Sized,

Implementations on Foreign Types§

source§

impl BytesComparableScore for u64

source§

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

source§

fn from_bytes(b: &[u8]) -> Selfwhere Self: Sized,

source§

impl BytesComparableScore for i32

source§

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

source§

fn from_bytes(b: &[u8]) -> Selfwhere Self: Sized,

source§

impl BytesComparableScore for f32

source§

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

source§

fn from_bytes(b: &[u8]) -> Selfwhere Self: Sized,

source§

impl BytesComparableScore for f64

source§

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

source§

fn from_bytes(b: &[u8]) -> Selfwhere Self: Sized,

source§

impl BytesComparableScore for u32

source§

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

source§

fn from_bytes(b: &[u8]) -> Selfwhere Self: Sized,

source§

impl BytesComparableScore for i64

source§

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

source§

fn from_bytes(b: &[u8]) -> Selfwhere Self: Sized,

Implementors§