# DisposableExt

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactive/disposables/trait-disposableext/

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

```rust
trait DisposableExt
```

`DisposableMixins.DisposeWith`: adds a disposable to a composite disposable and hands it back.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/disposables/disposable.rs#L76)

## Members

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

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

### dispose_with

```rust
fn dispose_with(self: Self, composite: &CompositeDisposable) -> Self
```

Adds the disposable to `composite`, which disposes it with itself, and returns it.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Reactive/disposables/disposable.rs#L78)

## Trait implementations

- [`DisposableExt`](/docs/0.5.0/api/ferroui-reactive/disposables/trait-disposableext/)

## Availability

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