Skip to main content

PhaseExt

Trait PhaseExt 

Source
pub trait PhaseExt {
    const BOOTSTRAP: Phase;
    const SQUAD: Phase;
    const HIERARCHICAL: Phase;

    // Required method
    fn as_str(&self) -> &'static str;
}
Expand description

Extension trait for Phase enum

Required Associated Constants§

Source

const BOOTSTRAP: Phase

Legacy compatibility constants

Source

const SQUAD: Phase

Source

const HIERARCHICAL: Phase

Required Methods§

Source

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

Get lowercase string representation

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§

Source§

impl PhaseExt for Phase

Source§

const BOOTSTRAP: Phase = Phase::Discovery

Source§

const SQUAD: Phase = Phase::Cell

Source§

const HIERARCHICAL: Phase = Phase::Hierarchy