# ImmutableDashStyle

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

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

```rust
struct ImmutableDashStyle
```

Represents the sequence of dashes and gaps that will be applied by an
`ImmutablePen`.

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

## Members

- [`new`](#function-new)
- [`dashes`](#function-dashes)
- [`offset`](#function-offset)

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

### new

```rust
fn new(dashes: Option<&[f64]>, offset: f64) -> Self
```

Creates a dash style. `None` dashes produce an empty sequence.

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

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

### dashes

```rust
fn dashes(self: &Self) -> &[f64]
```

The length of alternating dashes and gaps.

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

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

### offset

```rust
fn offset(self: &Self) -> f64
```

How far in the dash sequence the stroke will start.

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

## 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`
- `PartialEq`
- [`IDashStyle`](/docs/0.5.0/api/ferroui-base/media/trait-idashstyle/)

## Availability

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