Unit

Trait Unit 

Source
pub trait Unit:
    Sized
    + Default
    + Copy
    + Clone
    + PartialEq
    + Eq {
    const VALUE: Self;
}
Expand description

All zero-sized types in this crate implement this trait.

Required Associated Constants§

Source

const VALUE: Self

Sole value of the type.

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 Unit for ()

Source§

const VALUE: Self = ()

Implementors§

Source§

impl Unit for AlignCenterLeft

Source§

const VALUE: Self = AlignCenterLeft

Source§

impl Unit for AlignCenterRight

Source§

const VALUE: Self = AlignCenterRight

Source§

impl Unit for AlignLeft

Source§

const VALUE: Self = AlignLeft

Source§

impl Unit for AlignRight

Source§

const VALUE: Self = AlignRight

Source§

impl Unit for ErrorOnExcess

Source§

const VALUE: Self = ErrorOnExcess

Source§

impl Unit for IgnoreExcess

Source§

const VALUE: Self = IgnoreExcess

Source§

impl Unit for PanicOnExcess

Source§

const VALUE: Self = PanicOnExcess