FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    FuncMultiValueConverter

    struct · ferroui-base · v0.5.0

    struct FuncMultiValueConverter<TIn, TOut>
    

    A general purpose IMultiValueConverter that uses a function to provide the converter logic.

    TIn is the type of the inputs and TOut the output type. Use Option<T> for inputs that may be null and Option<BoxedValue> for "any value". If any input is not a TIn the converter returns the unset value marker.

    View source

    Members

    new

    fn new(convert: impl Fn(&[TIn]) -> TOut + 'static) -> Self
    

    Creates a converter from the convert function.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ErasedDestructor
    • IntoEither
    • IMultiValueConverter

    Availability

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