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
fn coerce(self, dest_ty: Option<T>) -> Self
Coerce a value to target type, depending on the value of the option.