FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SequenceError

    enum · ferroui-reactive · v0.5.0

    enum SequenceError
    

    The error an aggregate operator ends its sequence with when the sequence does not have the shape the operator needs (the exceptions upstream's operators throw into OnError).

    View source

    Members

    NoElements

    NoElements
    

    The sequence has no elements (InvalidOperationException with Strings_Linq.NO_ELEMENTS).

    Source

    NoMatchingElements

    NoMatchingElements
    

    No element of the sequence satisfies the predicate (InvalidOperationException with Strings_Linq.NO_MATCHING_ELEMENTS).

    Source

    MoreThanOneElement

    MoreThanOneElement
    

    The sequence has more than one element (InvalidOperationException with Strings_Linq.MORE_THAN_ONE_ELEMENT).

    Source

    MoreThanOneMatchingElement

    MoreThanOneMatchingElement
    

    More than one element satisfies the predicate (InvalidOperationException with Strings_Linq.MORE_THAN_ONE_MATCHING_ELEMENT).

    Source

    Overflow

    Overflow
    

    A count does not fit its type (OverflowException of the checked counts).

    Source

    DuplicateKey

    DuplicateKey
    

    Two elements have the same key (ArgumentException of Dictionary<TKey, TValue>.Add).

    Source

    is_invalid_operation

    fn is_invalid_operation(self: &Self) -> bool
    

    Whether the error is one of upstream's InvalidOperationExceptions (the sequence has no element, no matching element, or more than one).

    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
    • ToString
    • Clone
    • Copy
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Hash
    • Display
    • Error

    Availability

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