Trait valence::ecs::schedule::ScheduleLabel
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 a Schedule
.
Required Methods§
fn dyn_clone(&self) -> Box<dyn ScheduleLabel>
fn dyn_clone(&self) -> Box<dyn ScheduleLabel>
Clones this ScheduleLabel
.
Provided Methods§
fn intern(&self) -> Interned<dyn ScheduleLabel>where
Self: Sized,
fn intern(&self) -> Interned<dyn ScheduleLabel>where
Self: Sized,
Returns an Interned
value corresponding to self
.
Trait Implementations§
§impl Hash for dyn ScheduleLabel
impl Hash for dyn ScheduleLabel
§impl Internable for dyn ScheduleLabel
impl Internable for dyn ScheduleLabel
§fn leak(&self) -> &'static dyn ScheduleLabel
fn leak(&self) -> &'static dyn ScheduleLabel
Creates a static reference to
self
, possibly leaking memory.§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.