# TextTabStops

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

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

```rust
struct TextTabStops
```

A value configuration, shared immutably by paragraph properties and snapshots.
Replacing it raises one property change; querying or cloning it allocates nothing.

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

## Members

- [`MAX_COUNT`](#assoc_const-max_count)
- [`new`](#function-new)
- [`as_slice`](#function-as_slice)
- [`len`](#function-len)
- [`is_empty`](#function-is_empty)
- [`with_tab`](#function-with_tab)
- [`without_tab`](#function-without_tab)
- [`get`](#function-get)
- [`parse`](#function-parse)

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

### MAX_COUNT

```rust
const MAX_COUNT: usize
```



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

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

### new

```rust
fn new(stops: impl IntoIterator<Item = TextTabStop>) -> Result<Self, TextTabError>
```

Normalizes positions to ascending order. A later stop at the same position
replaces its earlier alignment and leader, just as adding that stop does.

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

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

### as_slice

```rust
fn as_slice(self: &Self) -> &[TextTabStop]
```



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

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

### len

```rust
fn len(self: &Self) -> usize
```



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

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

### is_empty

```rust
fn is_empty(self: &Self) -> bool
```



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

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

### with_tab

```rust
fn with_tab(self: &Self, stop: TextTabStop) -> Result<Self, TextTabError>
```



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

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

### without_tab

```rust
fn without_tab(self: &Self, position: f64) -> Result<Self, TextTabError>
```

Removing a nonexistent position leaves the value unchanged.

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

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

### get

```rust
fn get(self: &Self, index: usize) -> Result<TextTabStop, TextTabError>
```



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

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

### parse

```rust
fn parse(text: &str) -> Result<Self, TextTabError>
```

XAML distances are layout units. Example: `48,Left;96,Decimal,Dots`.

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

## 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`
- `Debug`
- `Default`
- `StructuralPartialEq`
- `PartialEq`
- [`MarkupTyped`](/docs/0.5.0/api/ferroui-base/metadata/trait-markuptyped/)
- [`ValueTypeRegistration`](/docs/0.5.0/api/ferroui-base/data/core/trait-valuetyperegistration/)

## Availability

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