Trait chunked::archetype::ComponentSetExt [−][src]
pub trait ComponentSetExt: ComponentSet { fn len(&self) -> usize { ... } fn as_ref(&self) -> ComponentSliceSet<'_> { ... } fn to_owned(&self) -> ComponentVecSet { ... } fn includes(&self, component_type: &ComponentTypeID) -> bool { ... } fn includes_all<T: Deref<Target = ComponentTypeID>>(
&self,
component_types: impl IntoIterator<Item = T>
) -> bool { ... } fn eq(&self, other: &impl ComponentSet) -> bool { ... } fn cmp(&self, other: &impl ComponentSet) -> Ordering { ... } }
Provided methods
fn len(&self) -> usize
[src]
Return the number of components in the component set.
fn as_ref(&self) -> ComponentSliceSet<'_>
[src]
Return a borrowed version of this ComponentSet
.
fn to_owned(&self) -> ComponentVecSet
[src]
Create an owned set from this set.
This always creates a copy.
fn includes(&self, component_type: &ComponentTypeID) -> bool
[src]
Returns true if this ComponentSet
contains the given component.
fn includes_all<T: Deref<Target = ComponentTypeID>>(
&self,
component_types: impl IntoIterator<Item = T>
) -> bool
[src]
&self,
component_types: impl IntoIterator<Item = T>
) -> bool
Returns true if this ComponentSet
contains all of the given component types.
fn eq(&self, other: &impl ComponentSet) -> bool
[src]
Returns true if these ComponentSet
s contain the same types.
fn cmp(&self, other: &impl ComponentSet) -> Ordering
[src]
Return the ordering between this and another ComponentSet
.