IBindingTypeConverterOf
trait · ferroui-reactiveui · v0.5.0
trait IBindingTypeConverterOf<F: 'static, T: 'static>: IBindingTypeConverter
A converter from F to T with a typed conversion (IBindingTypeConverter<TFrom, TTo>).
Every converter derived from BindingTypeConverter implements it
with its From and To types; a converter that implements IBindingTypeConverter directly
implements it as well.
Members
try_convert
fn try_convert(self: &Self, from: Option<&F>, conversion_hint: Option<&dyn Any>) -> Option<T>
Converts from (None for upstream's null, which only a converter of a nullable source
accepts), with an optional conversion_hint, and returns the converted value, or None
when the conversion fails (TryConvert(TFrom? from, object? conversionHint, out TTo? result)).
Trait implementations
IBindingTypeConverterOf<<C as BindingTypeConverter>::From, <C as BindingTypeConverter>::To>IBindingTypeConverterOf<u8, Option<u8>>IBindingTypeConverterOf<f64, Option<f64>>IBindingTypeConverterOf<i32, Option<i32>>IBindingTypeConverterOf<i64, Option<i64>>IBindingTypeConverterOf<Option<u8>, u8>IBindingTypeConverterOf<Option<f64>, f64>IBindingTypeConverterOf<Option<i32>, i32>IBindingTypeConverterOf<Option<i64>, i64>IBindingTypeConverterOf<Option<i16>, i16>IBindingTypeConverterOf<Option<f32>, f32>IBindingTypeConverterOf<i16, Option<i16>>IBindingTypeConverterOf<f32, Option<f32>>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.