pub unsafe trait FromValue<'a>: Sized {
    type Checker: ValueTypeChecker;

    unsafe fn from_value(value: &'a Value) -> Self;
}
Expand description

Trait to retrieve the contained value from a Value.

Usually this would not be used directly but from the get function on a Value

Required Associated Types

Value type checker.

Required Methods

Get the contained value from a Value.

Safety

Self::Checker::check() must be called first and must not fail.

Implementations on Foreign Types

Blanket implementation for all optional types.

Implementors