# UnicodeRangeSegment

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/media/struct-unicoderangesegment/

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

```rust
struct UnicodeRangeSegment
```

One contiguous range of code points.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/unicode_range.rs#L93)

## Members

- [`new`](#function-new)
- [`start`](#function-start)
- [`end`](#function-end)
- [`is_in_range`](#function-is_in_range)
- [`parse`](#function-parse)

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

### new

```rust
const fn new(start: i32, end: i32) -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/unicode_range.rs#L99)

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

### start

```rust
const fn start(self: &Self) -> i32
```

Get the start of the unicode range.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/unicode_range.rs#L104)

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

### end

```rust
const fn end(self: &Self) -> i32
```

Get the end of the unicode range.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/unicode_range.rs#L109)

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

### is_in_range

```rust
const fn is_in_range(self: &Self, value: i32) -> bool
```

Determines if given value is in range.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/unicode_range.rs#L114)

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

### parse

```rust
fn parse(s: &str) -> Result<UnicodeRangeSegment, FormatError>
```

Parses a `UnicodeRangeSegment`: `U+20`, `U+30??` or `0-10FFFD`.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/unicode_range.rs#L142)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ResourceKeyObject`](/docs/0.5.0/api/ferroui-base/controls/trait-resourcekeyobject/)
- [`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`
- `Hash`
- `FromStr`

## Availability

Extracted for `aarch64-apple-darwin`. Cargo features are listed in the [crate index](/docs/0.5.0/api/).
