Trait despero::ecs::IntoAccess

source ·
pub trait IntoAccess {
    // Required method
    fn access() -> Access;

    // Provided method
    fn compatible<U>() -> bool
       where U: IntoAccess { ... }
}
Expand description

Convert a type into the correspodning access.

Required Methods§

source

fn access() -> Access

Performs the conversion.

Provided Methods§

source

fn compatible<U>() -> boolwhere U: IntoAccess,

Check if the borrow is compatible with another borrow. A &T is compatible with &T, but not &mut T. A &mut T is compatible with &T and &mut T.

Implementations on Foreign Types§

source§

impl<T> IntoAccess for &mut Twhere T: 'static,

source§

impl<T> IntoAccess for &Twhere T: 'static,

Implementors§