Trait bevy::ecs::schedule::StageLabel

pub trait StageLabel: 'static {
    fn as_str(&self) -> &'static str;

    fn as_label(&self) -> StageLabelId { ... }
    fn type_id(&self) -> TypeId { ... }
}
Expand description

A strongly-typed class of labels used to identify Stages.

Required Methods

Returns the representation of this label as a string literal.

In cases where you absolutely need a label to be determined at runtime, you can use Box::leak to get a 'static reference.

Provided Methods

Converts this type into an opaque, strongly-typed label.

Returns the [TypeId] used to differentiate labels.

Implementations on Foreign Types

Implementors