ModeLabel

Trait ModeLabel 

Source
pub trait ModeLabel: Copy + Debug {
    // Required methods
    fn validate(self) -> Result<()>;
    fn pol(self) -> u8;
}
Expand description

The mode label of one multipole family: crate::sw::Mode or crate::cw::Mode.

Required Methods§

Source

fn validate(self) -> Result<()>

Reject labels outside the supported range.

Source

fn pol(self) -> u8

Polarization index: 1 or 0, as in treams.

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 ModeLabel for treams_core::cw::Mode

Source§

impl ModeLabel for treams_core::sw::Mode