# GlyphDecycler

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/media/fonts/tables/glyf/struct-glyphdecycler/

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

```rust
struct GlyphDecycler
```

The cycle guard used while building composite glyph outlines.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/fonts/tables/glyf/glyph_decycler.rs#L14)

## Members

- [`MAX_TRAVERSAL_DEPTH`](#assoc_const-max_traversal_depth)
- [`new`](#function-new)
- [`rent`](#function-rent)
- [`return_to_pool`](#function-return_to_pool)

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

### MAX_TRAVERSAL_DEPTH

```rust
const MAX_TRAVERSAL_DEPTH: i32
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/fonts/tables/glyf/glyph_decycler.rs#L19)

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

### new

```rust
fn new() -> Self
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/fonts/tables/glyf/glyph_decycler.rs#L21)

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

### rent

```rust
fn rent() -> GlyphDecycler
```

Takes an instance from the pool, creating one when the pool is empty.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/fonts/tables/glyf/glyph_decycler.rs#L26)

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

### return_to_pool

```rust
fn return_to_pool(decycler: GlyphDecycler)
```

Resets the instance and gives it back to the pool (dropped when the
pool is full).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/media/fonts/tables/glyf/glyph_decycler.rs#L32)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`ClassDefaults`](/docs/0.5.0/api/ferroui-base/trait-classdefaults/)
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- [`Receiver`](/docs/0.5.0/api/ferroui-system/task/oneshot/struct-receiver/)
- `Any`
- `ErasedDestructor`
- `IntoEither`
- `Default`
- `Deref`

## Availability

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