pub enum ScopeResolution {
Column(RegisteredType),
Consumed,
Expanded,
Resource,
}Expand description
What a component name denotes at tick time, for the behavior scope and
queries checks.
A world may declare far more types than a running world holds in a column:
the build expands some away, compiles others into the resource stream, and a
load-time pass drains the rest during World::start. Only Self::Column
can be matched against entities once the world is running.
Variants§
Column(RegisteredType)
A column that still holds entities at tick time. Carries the type the
name resolves to, which differs from the name itself where a load-time
pass leaves a runtime marker behind (Prop resolves to PropInstance).
Consumed
A load-time pass drains this column during World::start, leaving
nothing to match.
Expanded
The build expands this type into the components it stands for; no record of it reaches a world.
Resource
Compiled into the blob’s resource stream and reached by handle rather than stored in a column.
Trait Implementations§
Source§impl Clone for ScopeResolution
impl Clone for ScopeResolution
Source§fn clone(&self) -> ScopeResolution
fn clone(&self) -> ScopeResolution
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ScopeResolution
Source§impl Debug for ScopeResolution
impl Debug for ScopeResolution
impl Eq for ScopeResolution
Source§impl PartialEq for ScopeResolution
impl PartialEq for ScopeResolution
impl StructuralPartialEq for ScopeResolution
Auto Trait Implementations§
impl Freeze for ScopeResolution
impl RefUnwindSafe for ScopeResolution
impl Send for ScopeResolution
impl Sync for ScopeResolution
impl Unpin for ScopeResolution
impl UnsafeUnpin for ScopeResolution
impl UnwindSafe for ScopeResolution
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more