Trait StaticValue

Source
pub trait StaticValue: Sealed {
    type CorrespondingRuntimeType: ?Sized;

    const VALUE: Self::CorrespondingRuntimeType;
}

Required Associated Constants§

Required Associated Types§

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 StaticValue for False

Source§

const VALUE: Self::CorrespondingRuntimeType = {transmute(0x00): <misc::static_value::False as misc::static_value::StaticValue>::CorrespondingRuntimeType}

Source§

type CorrespondingRuntimeType = bool

Source§

impl StaticValue for True

Source§

const VALUE: Self::CorrespondingRuntimeType = {transmute(0x01): <misc::static_value::True as misc::static_value::StaticValue>::CorrespondingRuntimeType}

Source§

type CorrespondingRuntimeType = bool