FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ComparisonConditionTypeHelper

    struct · ferroui-xaml-interactivity · v0.5.0

    struct ComparisonConditionTypeHelper
    

    Compares the operands of a condition.

    View source

    Members

    compare

    fn compare(left_operand: Option<&BoxedValue>, operator_type: ComparisonConditionType, right_operand: Option<&BoxedValue>) -> Result<bool, String>
    

    Compares left_operand and right_operand with operator_type.

    A text right operand is first converted to the type of the left operand. Two comparable operands are compared by order (after converting the right one to the type of the left one; operands that do not convert or compare are not equal); other operands support only Equal and NotEqual.

    Errors

    An ordering operator with an operand that is not comparable: the argument exception of the reference.

    Source

    Trait implementations

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

    Availability

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