Trait FromSlice

Source
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

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.

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>