FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    EqualityTypeConverter

    struct · ferroui-reactiveui · v0.5.0

    struct EqualityTypeConverter
    

    Converts any value to whether it equals the conversion hint (EqualityTypeConverter): the converter of last resort, from dyn Any (upstream's object) to bool, with an affinity of 1. It always succeeds; no value (None) equals only no hint.

    Two values are equal when they are the same object, or when they have the same type and that type is one whose equality is known here: the integers, the floating-point numbers (NaN equals itself, as Double.Equals has it), bool, char, (), Uuid (and the deprecated ferroui_splat::Guid), Duration, an Option of those, and the strings (String and &'static str, which compare with each other).

    View source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • Clone
    • Copy
    • Debug
    • Default
    • IBindingTypeConverter

    Availability

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