pub struct RelaxDeltaMap { /* private fields */ }Expand description
Sparse map from section index to SectionRelaxDeltas.
Implementations§
Source§impl RelaxDeltaMap
impl RelaxDeltaMap
pub fn new() -> Self
pub fn insert(&mut self, section_index: usize, deltas: SectionRelaxDeltas)
pub fn get(&self, section_index: usize) -> Option<&SectionRelaxDeltas>
pub fn get_mut( &mut self, section_index: usize, ) -> Option<&mut SectionRelaxDeltas>
pub fn insert_sorted( &mut self, section_index: usize, deltas: SectionRelaxDeltas, )
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl Clone for RelaxDeltaMap
impl Clone for RelaxDeltaMap
Source§fn clone(&self) -> RelaxDeltaMap
fn clone(&self) -> RelaxDeltaMap
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RelaxDeltaMap
impl Debug for RelaxDeltaMap
Source§impl Default for RelaxDeltaMap
impl Default for RelaxDeltaMap
Source§fn default() -> RelaxDeltaMap
fn default() -> RelaxDeltaMap
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RelaxDeltaMap
impl RefUnwindSafe for RelaxDeltaMap
impl Send for RelaxDeltaMap
impl Sync for RelaxDeltaMap
impl Unpin for RelaxDeltaMap
impl UnsafeUnpin for RelaxDeltaMap
impl UnwindSafe for RelaxDeltaMap
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