FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ErrorConverter

    struct · ferroui-controls · v0.5.0

    struct ErrorConverter
    

    Converts an error of a control into the object that is shown for it; an error converted to None is dropped.

    Two converters are equal when they are the same function object.

    View source

    Members

    new

    fn new(convert: impl Fn(&BoxedValue) -> Option<BoxedValue> + 'static) -> Self
    

    Source

    convert

    fn convert(self: &Self, error: &BoxedValue) -> Option<BoxedValue>
    

    Converts an error.

    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
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Clone
    • PartialEq
    • Debug

    Availability

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