# GlyphInfoList

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/media/enum-glyphinfolist/

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

```rust
enum GlyphInfoList
```

The glyphs of a glyph run: either an owned list or a shaped buffer
(upstream: `IReadOnlyList<GlyphInfo>`).

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

## Members

- [`List`](#variant-list)
- [`ShapedBuffer`](#variant-shapedbuffer)
- [`empty`](#function-empty)
- [`borrow`](#function-borrow)
- [`count`](#function-count)

<a id="variant-list"></a>

### List

```rust
List(std::rc::Rc<[crate::media::text_formatting::GlyphInfo]>)
```

A plain list of glyphs.

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

<a id="variant-shapedbuffer"></a>

### ShapedBuffer

```rust
ShapedBuffer(std::rc::Rc<crate::media::text_formatting::ShapedBuffer>)
```

The glyphs of a shaped buffer.

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

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

### empty

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

An empty list.

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

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

### borrow

```rust
fn borrow(self: &Self) -> GlyphInfosRef<'_>
```

Borrows the glyphs.

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

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

### count

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

The number of glyphs.

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- [`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`
- `From<Vec<GlyphInfo>>`
- `From<Rc<ShapedBuffer>>`

## Availability

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