Skip to main content

try_coerce_scalar

Function try_coerce_scalar 

Source
fn try_coerce_scalar<T, R>(
    value: T,
    from: &'static str,
    to: &'static str,
) -> Result<R, StorageCoerceError>
where T: TryCoerce<R>, T::Error: Into<CoerceErrorKind>,
Expand description

Try to coerce a scalar value, mapping CoerceError to StorageCoerceError.