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§
Required Associated Types§
Required Methods§
fn inner(&self) -> &Self::Inner
fn try_from_inner(inner: Self::Inner) -> Result<Self, impl Display>
Provided Methods§
Sourcefn decode_stored(inner: Self::Inner) -> Result<Self>
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".