Skip to main content

Overflow

Trait Overflow 

Source
pub trait Overflow: Sealed + Default {
    // Required method
    fn word(&self, index: u64) -> Option<&AtomicU64>;
}
Expand description

Holds the words of an AtomicBitVec that don’t fit in its initial allocation.

This is what makes an AtomicBitVec growable or not: NoOverflow is a zero-sized type, so a vector that is never grown doesn’t pay for the ability to grow.

Required Methods§

Source

fn word(&self, index: u64) -> Option<&AtomicU64>

Returns the word at index, counted from the first word past the initial allocation, allocating it if needed, or None if the vector cannot grow.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§