Trait despero_hecs_schedule::IntoAccess
source · pub trait IntoAccess {
// Required method
fn access() -> Access;
// Provided method
fn compatible<U: IntoAccess>() -> bool { ... }
}
Expand description
Convert a type into the correspodning access.
Required Methods§
Provided Methods§
sourcefn compatible<U: IntoAccess>() -> bool
fn compatible<U: IntoAccess>() -> bool
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.