Trait sindra::value::Coerce [] [src]

pub trait Coerce<T: Type> {
    fn coerce(self, dest_ty: Option<T>) -> Self;
}

Trait for type coercions for values.

Required Methods

Coerce a value to target type, depending on the value of the option.

Implementors