pub struct Zones<T, A: MemPool> { /* fields omitted */ }
Expand description
Memory Zones
It manages memory zones to optimally dedicate a zone to each cpu for
scalability.
Creates a new Zones
object
count
is the number of zones (usually is the number cpus)
offset
is the size of reserved memory to be allocated for metadata
Returns the size of zones
Returns the number of zones
Returns a mutable reference to the i-th zone object
Returns a mutable reference to the zone object associated with the
current cpu
Returns a mutable reference to the zone object associated with the
given offset
The returned type after indexing.
Performs the indexing (container[index]
) operation. Read more
Performs the mutable indexing (container[index]
) operation. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.
impl<V, T> VZip<V> for T where
V: MultiLane<T>,