FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    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)).

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.