pub struct CollectionLimits {
pub objects: usize,
pub edges: usize,
pub stack: usize,
pub work: usize,
pub clears: usize,
pub finalizers: usize,
}Expand description
Independently enforced limits for one collection.
Fields§
§objects: usizeMaximum arena objects admitted.
edges: usizeMaximum enumerated edges admitted.
stack: usizeMaximum pending iterative mark stack length.
work: usizeMaximum charged root, object, edge, ephemeron, and sweep operations.
clears: usizeMaximum weak and ephemeron entries cleared.
finalizers: usizeMaximum finalization records produced and admitted.
Trait Implementations§
Source§impl Clone for CollectionLimits
impl Clone for CollectionLimits
Source§fn clone(&self) -> CollectionLimits
fn clone(&self) -> CollectionLimits
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 moreimpl Copy for CollectionLimits
Source§impl Debug for CollectionLimits
impl Debug for CollectionLimits
impl Eq for CollectionLimits
Source§impl PartialEq for CollectionLimits
impl PartialEq for CollectionLimits
impl StructuralPartialEq for CollectionLimits
Auto Trait Implementations§
impl Freeze for CollectionLimits
impl RefUnwindSafe for CollectionLimits
impl Send for CollectionLimits
impl Sync for CollectionLimits
impl Unpin for CollectionLimits
impl UnsafeUnpin for CollectionLimits
impl UnwindSafe for CollectionLimits
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