Trait bevy::ecs::schedule::ScheduleLabel
source · pub trait ScheduleLabel: 'static + Send + Sync + Debug {
// Required methods
fn dyn_clone(&self) -> Box<dyn ScheduleLabel>;
fn as_dyn_eq(&self) -> &(dyn DynEq + 'static);
fn dyn_hash(&self, state: &mut dyn Hasher);
// Provided method
fn intern(&self) -> Interned<dyn ScheduleLabel>
where Self: Sized { ... }
}
Expand description
A strongly-typed class of labels used to identify an [Schedule
].
Required Methods§
sourcefn dyn_clone(&self) -> Box<dyn ScheduleLabel>
fn dyn_clone(&self) -> Box<dyn ScheduleLabel>
Clones this ScheduleLabel
.
Provided Methods§
Trait Implementations§
source§impl Hash for dyn ScheduleLabel
impl Hash for dyn ScheduleLabel
source§impl Internable for dyn ScheduleLabel
impl Internable for dyn ScheduleLabel
source§fn leak(&self) -> &'static dyn ScheduleLabel
fn leak(&self) -> &'static dyn ScheduleLabel
Creates a static reference to
self
, possibly leaking memory.source§fn ref_eq(&self, other: &(dyn ScheduleLabel + 'static)) -> bool
fn ref_eq(&self, other: &(dyn ScheduleLabel + 'static)) -> bool
Returns
true
if the two references point to the same value.source§impl PartialEq for dyn ScheduleLabel
impl PartialEq for dyn ScheduleLabel
source§fn eq(&self, other: &(dyn ScheduleLabel + 'static)) -> bool
fn eq(&self, other: &(dyn ScheduleLabel + 'static)) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.