pub trait DataAccess {
    // Required methods
    fn borrows() -> SmallVec<[TypeId; 8]>
       where Self: Sized;
    fn borrow_muts() -> SmallVec<[TypeId; 8]>
       where Self: Sized;
}
Expand description

Data accessed by this type.

Required Methods§

source

fn borrows() -> SmallVec<[TypeId; 8]>
where Self: Sized,

Returns the TypeIds of borrowed arguments.

source

fn borrow_muts() -> SmallVec<[TypeId; 8]>
where Self: Sized,

Returns the TypeIds of mutably borrowed arguments.

Implementations on Foreign Types§

source§

impl DataAccess for ()

source§

fn borrows() -> SmallVec<[TypeId; 8]>
where (): Sized,

source§

fn borrow_muts() -> SmallVec<[TypeId; 8]>
where (): Sized,

source§

impl<'any> DataAccess for &'any ()

source§

fn borrows() -> SmallVec<[TypeId; 8]>
where &'any (): Sized,

source§

fn borrow_muts() -> SmallVec<[TypeId; 8]>
where &'any (): Sized,

source§

impl<'read, T> DataAccess for Ref<'read, T>
where T: 'static,

source§

fn borrows() -> SmallVec<[TypeId; 8]>

source§

fn borrow_muts() -> SmallVec<[TypeId; 8]>

source§

impl<'write, T> DataAccess for RefMut<'write, T>
where T: 'static,

source§

fn borrows() -> SmallVec<[TypeId; 8]>

source§

fn borrow_muts() -> SmallVec<[TypeId; 8]>

Implementors§

source§

impl<'borrow, T> DataAccess for RMaybe<'borrow, T>
where T: Debug + Send + Sync + 'static,

source§

impl<'borrow, T> DataAccess for WMaybe<'borrow, T>
where T: Debug + Send + Sync + 'static,