Skip to main content

Value

Trait Value 

Source
pub trait Value: Sized {
    type Inner: Cast;

    const SENSITIVE: bool = false;

    // Required methods
    fn inner(&self) -> &Self::Inner;
    fn try_from_inner(inner: Self::Inner) -> Result<Self, impl Display>;

    // Provided method
    fn decode_stored(inner: Self::Inner) -> Result<Self> { ... }
}

Provided Associated Constants§

Source

const SENSITIVE: bool = false

Required Associated Types§

Required Methods§

Source

fn inner(&self) -> &Self::Inner

Source

fn try_from_inner(inner: Self::Inner) -> Result<Self, impl Display>

Provided Methods§

Source

fn decode_stored(inner: Self::Inner) -> Result<Self>

Overridden when an input rule tightens, so rows written under the looser one still read.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§