Trait AppLabel
Source 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
.
Returns an Interned
value corresponding to self
.
Creates a static reference to self
, possibly leaking memory.
Returns true
if the two references point to the same value.
Feeds the reference to the hasher.
Tests for self
and other
values to be equal, and is used by ==
.
Tests for !=
. The default implementation is almost always sufficient,
and should not be overridden without very good reason.