Trait Tag

Source
pub trait Tag:
    Copy
    + Eq
    + Ord
    + Debug
    + Default
    + Sized {
    const IS_SIGNIFICANT: bool;

    // Required method
    fn constrain(self) -> Self;
}

Required Associated Constants§

Required Methods§

Source

fn constrain(self) -> Self

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.

Implementations on Foreign Types§

Source§

impl Tag for u32

Source§

const IS_SIGNIFICANT: bool = true

Source§

fn constrain(self) -> Self

Implementors§