pub trait AppLabel: 'static {
// Required method
fn as_str(&self) -> &'static str;
// Provided methods
fn as_label(&self) -> AppLabelId { ... }
fn type_id(&self) -> TypeId { ... }
}
Expand description
A strongly-typed class of labels used to identify an App
.
Required Methods§
Provided Methods§
sourcefn as_label(&self) -> AppLabelId
fn as_label(&self) -> AppLabelId
Converts this type into an opaque, strongly-typed label.