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 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>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§