Type Alias valence::ecs::schedule::InternedScheduleLabel

pub type InternedScheduleLabel = Interned<dyn ScheduleLabel>;
Expand description

A shorthand for Interned<dyn ScheduleLabel>.

Aliased Type§

struct InternedScheduleLabel(pub &'static dyn ScheduleLabel);

Fields§

§0: &'static dyn ScheduleLabel

Trait Implementations

§

impl<T> Clone for Interned<T>
where T: ?Sized,

§

fn clone(&self) -> Interned<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<T> Debug for Interned<T>
where T: Debug + ?Sized,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<T> Deref for Interned<T>
where T: ?Sized,

§

type Target = T

The resulting type after dereferencing.
§

fn deref(&self) -> &<Interned<T> as Deref>::Target

Dereferences the value.
§

impl<T> From<&Interned<T>> for Interned<T>

§

fn from(value: &Interned<T>) -> Interned<T>

Converts to this type from the input type.
§

impl<T> Hash for Interned<T>
where T: Internable + ?Sized,

§

fn hash<H>(&self, state: &mut H)
where H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl<T> PartialEq for Interned<T>
where T: Internable + ?Sized,

§

fn eq(&self, other: &Interned<T>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl ScheduleLabel for Interned<dyn ScheduleLabel>

§

fn as_dyn_eq(&self) -> &(dyn DynEq + 'static)

Casts this value to a form where it can be compared with other type-erased values.

§

fn dyn_clone(&self) -> Box<dyn ScheduleLabel>

Clones this ScheduleLabel.
§

fn dyn_hash(&self, state: &mut dyn Hasher)

Feeds this value into the given Hasher.
§

fn intern(&self) -> Interned<dyn ScheduleLabel>

Returns an Interned value corresponding to self.
§

impl<T> Copy for Interned<T>
where T: ?Sized,

§

impl<T> Eq for Interned<T>
where T: Internable + ?Sized,