Trait rax::RaxKey [−][src]
pub trait RaxKey<RHS = Self>: Clone + Default + Debug { type Output: RaxKey; fn encode(self) -> Self::Output; fn to_buf(&self) -> (*const u8, usize); fn from_buf(ptr: *const u8, len: usize) -> RHS; }
Same as RaxMap except values are not pointers to heap allocations.
Instead the "data pointer" in the RAX is the value. This means we
have sizeof
Associated Types
Required Methods
fn encode(self) -> Self::Output
fn to_buf(&self) -> (*const u8, usize)
fn from_buf(ptr: *const u8, len: usize) -> RHS
Implementations on Foreign Types
impl RaxKey for f32
[src]
impl RaxKey for f32
impl RaxKey for f64
[src]
impl RaxKey for f64
impl RaxKey for isize
[src]
impl RaxKey for isize
impl RaxKey for usize
[src]
impl RaxKey for usize
impl RaxKey for i16
[src]
impl RaxKey for i16
impl RaxKey for u16
[src]
impl RaxKey for u16
impl RaxKey for i32
[src]
impl RaxKey for i32
impl RaxKey for u32
[src]
impl RaxKey for u32
impl RaxKey for i64
[src]
impl RaxKey for i64
impl RaxKey for u64
[src]
impl RaxKey for u64
impl RaxKey for i128
[src]
impl RaxKey for i128
impl RaxKey for u128
[src]
impl RaxKey for u128
impl RaxKey for Vec<u8>
[src]
impl RaxKey for Vec<u8>
impl<'a> RaxKey for &'a [u8]
[src]
impl<'a> RaxKey for &'a [u8]
impl<'a> RaxKey for &'a str
[src]
impl<'a> RaxKey for &'a str