pub struct EpochResetArray<Index, Value, EpochCounter> { /* private fields */ }Implementations§
Source§impl<Index: EpochResetArrayIndex, Value: EpochResetArrayValue, EpochCounter: EpochResetArrayCounter> EpochResetArray<Index, Value, EpochCounter>
impl<Index: EpochResetArrayIndex, Value: EpochResetArrayValue, EpochCounter: EpochResetArrayCounter> EpochResetArray<Index, Value, EpochCounter>
pub fn new(reset_value: Value, len: Index) -> Self
pub fn len_usize(&self) -> usize
pub fn len_index(&self) -> Index
pub fn is_empty(&self) -> bool
pub fn get(&self, index: Index) -> &Value
pub fn get_mut(&mut self, index: Index) -> &mut Value
pub fn set(&mut self, index: Index, value: Value) -> Option<Value>
pub fn reset(&mut self)
Trait Implementations§
Source§impl<Index: Clone, Value: Clone, EpochCounter: Clone> Clone for EpochResetArray<Index, Value, EpochCounter>
impl<Index: Clone, Value: Clone, EpochCounter: Clone> Clone for EpochResetArray<Index, Value, EpochCounter>
Source§fn clone(&self) -> EpochResetArray<Index, Value, EpochCounter>
fn clone(&self) -> EpochResetArray<Index, Value, EpochCounter>
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 moreAuto Trait Implementations§
impl<Index, Value, EpochCounter> Freeze for EpochResetArray<Index, Value, EpochCounter>
impl<Index, Value, EpochCounter> RefUnwindSafe for EpochResetArray<Index, Value, EpochCounter>
impl<Index, Value, EpochCounter> Send for EpochResetArray<Index, Value, EpochCounter>
impl<Index, Value, EpochCounter> Sync for EpochResetArray<Index, Value, EpochCounter>
impl<Index, Value, EpochCounter> Unpin for EpochResetArray<Index, Value, EpochCounter>
impl<Index, Value, EpochCounter> UnwindSafe for EpochResetArray<Index, Value, EpochCounter>
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