# IDisposable

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-system/trait-idisposable/

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

```rust
trait IDisposable
```

A resource or subscription that is released explicitly.

Unlike `Drop`, disposal is an explicit, idempotent operation: dropping a
handle without calling `dispose` keeps the
subscription alive, which is what callers that ignore the returned handle
expect. `Subscription` is the guard that disposes
the handle when it is dropped.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.System/i_disposable.rs#L10)

## Members

- [`dispose`](#function-dispose)

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

### dispose

```rust
fn dispose(self: &Self)
```



[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.System/i_disposable.rs#L11)

## Availability

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