AccessCount

Trait AccessCount 

Source
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§

Source

fn writers(type_id: TypeId) -> usize

Returns how many writers for the given type exist in this list.

Source

fn readers(type_id: TypeId) -> usize

Returns how many readers for the given type exist in this list (both exclusive and non-exclusive).

Source

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.

Implementors§

Source§

impl AccessCount for Nil

Source§

impl<T, U> AccessCount for Cons<T, U>
where T: AccessKind, U: AccessCount,