FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    NumberStyles

    struct · ferroui-base · v0.5.0

    struct NumberStyles
    

    Flags controlling which syntactic elements a numeric string may contain.

    View source

    Members

    NONE

    const NONE: Self
    

    Source

    ALLOW_LEADING_WHITE

    const ALLOW_LEADING_WHITE: Self
    

    Source

    ALLOW_TRAILING_WHITE

    const ALLOW_TRAILING_WHITE: Self
    

    Source

    ALLOW_LEADING_SIGN

    const ALLOW_LEADING_SIGN: Self
    

    Source

    ALLOW_TRAILING_SIGN

    const ALLOW_TRAILING_SIGN: Self
    

    Source

    ALLOW_DECIMAL_POINT

    const ALLOW_DECIMAL_POINT: Self
    

    Source

    ALLOW_THOUSANDS

    const ALLOW_THOUSANDS: Self
    

    Source

    ALLOW_EXPONENT

    const ALLOW_EXPONENT: Self
    

    Source

    ALLOW_HEX_SPECIFIER

    const ALLOW_HEX_SPECIFIER: Self
    

    Source

    INTEGER

    const INTEGER: Self
    

    Leading/trailing white space and a leading sign.

    Source

    NUMBER

    const NUMBER: Self
    

    White space, leading or trailing sign, decimal point and group separators.

    Source

    FLOAT

    const FLOAT: Self
    

    White space, leading sign, decimal point and exponent.

    Source

    FLOAT_THOUSANDS

    const FLOAT_THOUSANDS: Self
    

    Self::FLOAT plus group separators: the default style for parsing a double.

    Source

    HEX_NUMBER

    const HEX_NUMBER: Self
    

    White space and hexadecimal digits (no sign, no prefix).

    Source

    bits

    const fn bits(self: Self) -> u32
    

    Source

    contains

    const fn contains(self: Self, other: Self) -> bool
    

    Source

    union

    const fn union(self: Self, other: Self) -> Self
    

    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
    • ErasedDestructor
    • IntoEither
    • Clone
    • Copy
    • Debug
    • StructuralPartialEq
    • PartialEq
    • Eq
    • Default
    • BitOr

    Availability

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