Skip to main content

AppLabel

Trait AppLabel 

pub trait AppLabel:
    Send
    + Sync
    + Debug
    + DynEq
    + DynHash {
    // Required method
    fn dyn_clone(&self) -> Box<dyn AppLabel>;

    // Provided method
    fn intern(&self) -> Interned<dyn AppLabel>
       where Self: Sized { ... }
}
Expand description

A strongly-typed class of labels used to identify an App.

Required Methods§

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

Clones this AppLabel.

Provided Methods§

fn intern(&self) -> Interned<dyn AppLabel>
where Self: Sized,

Returns an Interned value corresponding to self.

Trait Implementations§

§

impl Hash for dyn AppLabel

§

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

Feeds this value into the given Hasher. Read more
§

impl Internable for dyn AppLabel

§

fn leak(&self) -> &'static dyn AppLabel

Creates a static reference to self, possibly leaking memory.
§

fn ref_eq(&self, other: &(dyn AppLabel + 'static)) -> bool

Returns true if the two references point to the same value.
§

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

Feeds the reference to the hasher.
§

impl PartialEq for dyn AppLabel

§

fn eq(&self, other: &(dyn AppLabel + 'static)) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · 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 Eq for dyn AppLabel

Implementors§