Struct hecs_schedule::SubWorldRaw
source · [−]pub struct SubWorldRaw<A, T> { /* private fields */ }
Expand description
Implementations
Query the subworld for a single entity. Wraps the hecs::NoSuchEntity error and provides the entity id
Get a single component from the world.
Wraps the hecs::NoSuchEntity error and provides the entity id
Get a single component from the world.
Wraps the hecs::NoSuchEntity error and provides the entity id
Reserve multiple entities concurrently
Query the full access of the subworld. Does not fail as access is guaranteed
Splits the subworld further into a compatible subworld. Fails if not compatible
Trait Implementations
impl<A: ExternalClone, T: ComponentBorrow, U: ComponentBorrow + Subset> From<&'_ SubWorldRaw<A, T>> for SubWorldRaw<A, U>
impl<A: ExternalClone, T: ComponentBorrow, U: ComponentBorrow + Subset> From<&'_ SubWorldRaw<A, T>> for SubWorldRaw<A, U>
Performs the conversion.
impl<'a, 'b, T: ComponentBorrow, U: ComponentBorrow + Subset> From<&'b SubWorldRaw<AtomicRef<'a, World>, T>> for SubWorldRef<'b, U>
impl<'a, 'b, T: ComponentBorrow, U: ComponentBorrow + Subset> From<&'b SubWorldRaw<AtomicRef<'a, World>, T>> for SubWorldRef<'b, U>
Convert the subworld into another holding an internal reference to the original world.
Queries the world
Queries the world for a specific entity
Get a single component for an entity Returns the contextual result since hecs-schedule is required to be imported anyway Read more
Get a single component for an entity Returns the contextual result since hecs-schedule is required to be imported anyway Read more
Transform this into a subworld which borrows no components. This is useful for concurrent access of entities. Read more