NumberStyles
struct · ferroui-base · v0.5.0
struct NumberStyles
Flags controlling which syntactic elements a numeric string may contain.
Members
NONEALLOW_LEADING_WHITEALLOW_TRAILING_WHITEALLOW_LEADING_SIGNALLOW_TRAILING_SIGNALLOW_DECIMAL_POINTALLOW_THOUSANDSALLOW_EXPONENTALLOW_HEX_SPECIFIERINTEGERNUMBERFLOATFLOAT_THOUSANDSHEX_NUMBERbitscontainsunion
NONE
const NONE: Self
ALLOW_LEADING_WHITE
const ALLOW_LEADING_WHITE: Self
ALLOW_TRAILING_WHITE
const ALLOW_TRAILING_WHITE: Self
ALLOW_LEADING_SIGN
const ALLOW_LEADING_SIGN: Self
ALLOW_TRAILING_SIGN
const ALLOW_TRAILING_SIGN: Self
ALLOW_DECIMAL_POINT
const ALLOW_DECIMAL_POINT: Self
ALLOW_THOUSANDS
const ALLOW_THOUSANDS: Self
ALLOW_EXPONENT
const ALLOW_EXPONENT: Self
ALLOW_HEX_SPECIFIER
const ALLOW_HEX_SPECIFIER: Self
INTEGER
const INTEGER: Self
Leading/trailing white space and a leading sign.
NUMBER
const NUMBER: Self
White space, leading or trailing sign, decimal point and group separators.
FLOAT
const FLOAT: Self
White space, leading sign, decimal point and exponent.
FLOAT_THOUSANDS
const FLOAT_THOUSANDS: Self
Self::FLOAT plus group separators: the default style for parsing a double.
HEX_NUMBER
const HEX_NUMBER: Self
White space and hexadecimal digits (no sign, no prefix).
bits
const fn bits(self: Self) -> u32
contains
const fn contains(self: Self, other: Self) -> bool
union
const fn union(self: Self, other: Self) -> Self
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafePropertyValueAnyValueClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneCopyDebugStructuralPartialEqPartialEqEqDefaultBitOr
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.