Trait NamedStep

Source
pub trait NamedStep:
    'static
    + Send
    + Sync
    + Default {
    // Required method
    fn name(&self) -> &'static str;
}
Expand description

This trait lets you use the AtomicSubStep defined right below. The name must be a const that never changed but that can’t be enforced by the type system because it make the trait non object-safe. By forcing the Default trait + the &’static str we make it harder to miss-use the trait.

Required Methods§

Source

fn name(&self) -> &'static str

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§