pub trait NestedAccessCount {
// Required methods
fn writers(type_id: TypeId) -> usize;
fn readers(type_id: TypeId) -> usize;
fn exclusive_readers(type_id: TypeId) -> usize;
}Expand description
Internal helper to query how a cons-list of cons-lists of StoreRequest types will use a specific type.
Required Methods§
Sourcefn writers(type_id: TypeId) -> usize
fn writers(type_id: TypeId) -> usize
Returns how many writers for the given type exist in this list of lists.
Sourcefn readers(type_id: TypeId) -> usize
fn readers(type_id: TypeId) -> usize
Returns how many readers for the given type exist in this list of lists (both exclusive and non-exclusive).
Sourcefn exclusive_readers(type_id: TypeId) -> usize
fn exclusive_readers(type_id: TypeId) -> usize
Returns how many exclusive readers for the given type exist in this list of lists.
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.