pub struct Changed<T> { /* private fields */ }
Trait Implementations
sourceimpl<T: Ord> Ord for Changed<T>
impl<T: Ord> Ord for Changed<T>
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<T: PartialEq> PartialEq<Changed<T>> for Changed<T>
impl<T: PartialEq> PartialEq<Changed<T>> for Changed<T>
sourceimpl<T: PartialOrd> PartialOrd<Changed<T>> for Changed<T>
impl<T: PartialOrd> PartialOrd<Changed<T>> for Changed<T>
sourcefn partial_cmp(&self, other: &Changed<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &Changed<T>) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresourceimpl<T: Component> WorldQuery for Changed<T>
impl<T: Component> WorldQuery for Changed<T>
type Item<'w> = bool
type Fetch<'w> = ChangedFetch<'w, T>
type State = ComponentId
type ReadOnly = Changed<T>
sourceunsafe fn init_fetch<'w>(
world: &'w World,
state: &Self::State,
last_change_tick: u32,
change_tick: u32
) -> Self::Fetch<'w>
unsafe fn init_fetch<'w>(
world: &'w World,
state: &Self::State,
last_change_tick: u32,
change_tick: u32
) -> Self::Fetch<'w>
Safety Read more
sourceunsafe fn fetch<'w>(
fetch: &mut Self::Fetch<'w>,
entity: Entity
) -> Self::Item<'w>
unsafe fn fetch<'w>(
fetch: &mut Self::Fetch<'w>,
entity: Entity
) -> Self::Item<'w>
Fetch a single item from the given
fetch
and entity
.sourceunsafe fn filter_fetch<'w>(fetch: &mut Self::Fetch<'w>, entity: Entity) -> bool
unsafe fn filter_fetch<'w>(fetch: &mut Self::Fetch<'w>, entity: Entity) -> bool
Fetches the filter for this query.
sourcefn init_state(world: &mut World) -> Self::State
fn init_state(world: &mut World) -> Self::State
Initialize the state required to fetch this query.
sourcefn update_component_access(
state: &Self::State,
access: &mut FilteredAccess<ComponentId>
)
fn update_component_access(
state: &Self::State,
access: &mut FilteredAccess<ComponentId>
)
Update the component access for this query.
impl<T: Copy> Copy for Changed<T>
impl<T: Eq> Eq for Changed<T>
impl<T: Component> ReadOnlyWorldQuery for Changed<T>
impl<T> StructuralEq for Changed<T>
impl<T> StructuralPartialEq for Changed<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for Changed<T>where
T: RefUnwindSafe,
impl<T> Send for Changed<T>where
T: Send,
impl<T> Sync for Changed<T>where
T: Sync,
impl<T> Unpin for Changed<T>where
T: Unpin,
impl<T> UnwindSafe for Changed<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CallHasher for Twhere
T: Hash + ?Sized,
impl<T> CallHasher for Twhere
T: Hash + ?Sized,
sourceimpl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
sourcefn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read moresourcefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read moresourcefn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read moresourcefn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more