pub struct SlotLayout {
pub gate_off: usize,
pub up_off: usize,
pub down_off: usize,
pub gate_bytes: usize,
pub up_bytes: usize,
pub down_bytes: usize,
pub bytes: usize,
}Expand description
Byte layout of one expert inside an LRU slot: [gate | up | down].
Fields§
§gate_off: usize§up_off: usize§down_off: usize§gate_bytes: usize§up_bytes: usize§down_bytes: usize§bytes: usizeTotal bytes per expert = one slot.
Implementations§
Trait Implementations§
Source§impl Clone for SlotLayout
impl Clone for SlotLayout
Source§fn clone(&self) -> SlotLayout
fn clone(&self) -> SlotLayout
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SlotLayout
impl Debug for SlotLayout
Source§impl PartialEq for SlotLayout
impl PartialEq for SlotLayout
impl Copy for SlotLayout
impl Eq for SlotLayout
impl StructuralPartialEq for SlotLayout
Auto Trait Implementations§
impl Freeze for SlotLayout
impl RefUnwindSafe for SlotLayout
impl Send for SlotLayout
impl Sync for SlotLayout
impl Unpin for SlotLayout
impl UnwindSafe for SlotLayout
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.