Trait nereon::FromValue

source ·
pub trait FromValue<OK = Self> {
    fn from_value(value: Value) -> Result<OK, ConversionError>;

    fn from_no_value() -> Result<OK, ConversionError> { ... }
}
Expand description

Trait for conversion from Value into arbitrary types.

This trait is used by the get and lookup Value methods.

Implementations exist for several standard types.

Implemnataions can be automatically derived by using the nereon_derive crate.

Required Methods§

Provided Methods§

Implementations on Foreign Types§

Implementors§