# NumberStyles

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/utilities/span_helpers/struct-numberstyles/

**struct** · [`ferroui-base`](/docs/0.5.0/api/ferroui-base/) · v0.5.0

```rust
struct NumberStyles
```

Flags controlling which syntactic elements a numeric string may contain.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/span_helpers.rs#L12)

## Members

- [`NONE`](#assoc_const-none)
- [`ALLOW_LEADING_WHITE`](#assoc_const-allow_leading_white)
- [`ALLOW_TRAILING_WHITE`](#assoc_const-allow_trailing_white)
- [`ALLOW_LEADING_SIGN`](#assoc_const-allow_leading_sign)
- [`ALLOW_TRAILING_SIGN`](#assoc_const-allow_trailing_sign)
- [`ALLOW_DECIMAL_POINT`](#assoc_const-allow_decimal_point)
- [`ALLOW_THOUSANDS`](#assoc_const-allow_thousands)
- [`ALLOW_EXPONENT`](#assoc_const-allow_exponent)
- [`ALLOW_HEX_SPECIFIER`](#assoc_const-allow_hex_specifier)
- [`INTEGER`](#assoc_const-integer)
- [`NUMBER`](#assoc_const-number)
- [`FLOAT`](#assoc_const-float)
- [`FLOAT_THOUSANDS`](#assoc_const-float_thousands)
- [`HEX_NUMBER`](#assoc_const-hex_number)
- [`bits`](#function-bits)
- [`contains`](#function-contains)
- [`union`](#function-union)

<a id="assoc_const-none"></a>

### NONE

```rust
const NONE: Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/span_helpers.rs#L15)

<a id="assoc_const-allow_leading_white"></a>

### ALLOW_LEADING_WHITE

```rust
const ALLOW_LEADING_WHITE: Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/span_helpers.rs#L16)

<a id="assoc_const-allow_trailing_white"></a>

### ALLOW_TRAILING_WHITE

```rust
const ALLOW_TRAILING_WHITE: Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/span_helpers.rs#L17)

<a id="assoc_const-allow_leading_sign"></a>

### ALLOW_LEADING_SIGN

```rust
const ALLOW_LEADING_SIGN: Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/span_helpers.rs#L18)

<a id="assoc_const-allow_trailing_sign"></a>

### ALLOW_TRAILING_SIGN

```rust
const ALLOW_TRAILING_SIGN: Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/span_helpers.rs#L19)

<a id="assoc_const-allow_decimal_point"></a>

### ALLOW_DECIMAL_POINT

```rust
const ALLOW_DECIMAL_POINT: Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/span_helpers.rs#L20)

<a id="assoc_const-allow_thousands"></a>

### ALLOW_THOUSANDS

```rust
const ALLOW_THOUSANDS: Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/span_helpers.rs#L21)

<a id="assoc_const-allow_exponent"></a>

### ALLOW_EXPONENT

```rust
const ALLOW_EXPONENT: Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/span_helpers.rs#L22)

<a id="assoc_const-allow_hex_specifier"></a>

### ALLOW_HEX_SPECIFIER

```rust
const ALLOW_HEX_SPECIFIER: Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/span_helpers.rs#L23)

<a id="assoc_const-integer"></a>

### INTEGER

```rust
const INTEGER: Self
```

Leading/trailing white space and a leading sign.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/span_helpers.rs#L26)

<a id="assoc_const-number"></a>

### NUMBER

```rust
const NUMBER: Self
```

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

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/span_helpers.rs#L28)

<a id="assoc_const-float"></a>

### FLOAT

```rust
const FLOAT: Self
```

White space, leading sign, decimal point and exponent.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/span_helpers.rs#L30)

<a id="assoc_const-float_thousands"></a>

### FLOAT_THOUSANDS

```rust
const FLOAT_THOUSANDS: Self
```

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

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/span_helpers.rs#L32)

<a id="assoc_const-hex_number"></a>

### HEX_NUMBER

```rust
const HEX_NUMBER: Self
```

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

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/span_helpers.rs#L34)

<a id="function-bits"></a>

### bits

```rust
const fn bits(self: Self) -> u32
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/span_helpers.rs#L37)

<a id="function-contains"></a>

### contains

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/span_helpers.rs#L42)

<a id="function-union"></a>

### union

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



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/utilities/span_helpers.rs#L47)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`PropertyValue`](/docs/0.5.0/api/ferroui-base/trait-propertyvalue/)
- [`AnyValue`](/docs/0.5.0/api/ferroui-base/trait-anyvalue/)
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-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](/docs/0.5.0/api/).
