# PieChartEngine

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-livecharts/pie_chart_engine/struct-piechartengine/

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

```rust
struct PieChartEngine
```



[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/pie_chart_engine.rs#L110)

## Members

- [`measure`](#function-measure)
- [`measure_with_labels`](#function-measure_with_labels)

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

### measure

```rust
fn measure(size: Size, series: &[Series], options: &PieOptions) -> Result<Scene, ChartError>
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/pie_chart_engine.rs#L112)

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

### measure_with_labels

```rust
fn measure_with_labels(size: Size, series: &[Series], options: &PieOptions, measure_text: impl FnMut(&str, f64) -> Size) -> Result<Scene, ChartError>
```

Native hosts supply their text shaper so outer label reservation and
centered labels use the same font metrics as the final drawing.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.LiveCharts/pie_chart_engine.rs#L124)

## Trait implementations

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

## Availability

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