pub unsafe trait LinearParAccess: BoundedParAccess<usize> {
// Provided method
fn collection_len(&self) -> usize { ... }
}
Expand description
An unsynchronized access to an array-like structure, indexed by usize
.
§Safety
The length of the collection must be reported correctly.
Provided Methods§
Sourcefn collection_len(&self) -> usize
fn collection_len(&self) -> usize
The number of accessible records in the collection.
An implementor must ensure that this length never changes. In other words, once an access is obtained, the size of the collection must never not change while an access is active.
It must also be equivalent to the result returned by the extent of the
Bounds
of the access.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.