pub trait AccessCount {
// 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-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.
Sourcefn readers(type_id: TypeId) -> usize
fn readers(type_id: TypeId) -> usize
Returns how many readers for the given type exist in this list (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.
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.