FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    FormatError

    struct · ferroui-base · v0.5.0

    struct FormatError
    

    Error returned when a string is not in the expected format.

    View source

    Members

    new

    const fn new(message: &'static str) -> Self
    

    Creates an error with a static message.

    Source

    from_string

    fn from_string(message: String) -> Self
    

    Creates an error with a computed message.

    Source

    invalid_input

    fn invalid_input(input: &str) -> Self
    

    Creates the error reported when a number cannot be parsed from input.

    Source

    message

    fn message(self: &Self) -> &str
    

    Gets the error message.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • PropertyValue
    • AnyValue
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ToString
    • ErasedDestructor
    • IntoEither
    • Clone
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Default
    • Display
    • Error

    Availability

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