Skip to main content

HasValue

Trait HasValue 

Source
pub trait HasValue {
    type Value: DeserializeOwned;

    // Required method
    fn value(self) -> Self::Value;
}

Required Associated Types§

Required Methods§

Source

fn value(self) -> Self::Value

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl HasValue for ()

Source§

type Value = ()

Source§

fn value(self) -> Self::Value

Implementors§