Trait despero::ecs::borrow::ComponentBorrow
source · pub trait ComponentBorrow {
// Required methods
fn borrows() -> SmallVec<[Access; 8]>;
fn has_dynamic(id: TypeId, exclusive: bool) -> bool;
fn has<U>() -> bool
where U: IntoAccess;
}
Expand description
Trait for a set of component accesses
Required Methods§
sourcefn has_dynamic(id: TypeId, exclusive: bool) -> bool
fn has_dynamic(id: TypeId, exclusive: bool) -> bool
Returns true if id exists in Self
sourcefn has<U>() -> boolwhere
U: IntoAccess,
fn has<U>() -> boolwhere U: IntoAccess,
Returns true if U exists in Self