pub trait FromSlice {
    // Required method
    fn new_from_slice(data: &mut [u8]) -> &mut Self;
}
Expand description

This is a convenience trait that exposes an interface to read a struct from an arbitrary byte array

Required Methods§

source

fn new_from_slice(data: &mut [u8]) -> &mut Self

Implementors§

source§

impl<K: PartialOrd + Copy + Clone + Default + Pod + Zeroable, V: Default + Copy + Clone + Pod + Zeroable, const MAX_SIZE: usize> FromSlice for AVLTree<K, V, MAX_SIZE>

source§

impl<K: Debug + PartialOrd + Ord + Copy + Clone + Default + Pod + Zeroable, V: Default + Copy + Clone + Pod + Zeroable, const MAX_SIZE: usize> FromSlice for RedBlackTree<K, V, MAX_SIZE>

source§

impl<K: Hash + PartialEq + Copy + Clone + Default + Pod + Zeroable, V: Default + Copy + Clone + Pod + Zeroable, const NUM_BUCKETS: usize, const MAX_SIZE: usize> FromSlice for HashTable<K, V, NUM_BUCKETS, MAX_SIZE>

source§

impl<T: Default + Copy + Clone + Pod + Zeroable, const MAX_SIZE: usize> FromSlice for Deque<T, MAX_SIZE>

source§

impl<V: Default + Copy + Clone + Pod + Zeroable, const NUM_NODES: usize, const MAX_SIZE: usize> FromSlice for Critbit<V, NUM_NODES, MAX_SIZE>