# DisposableMixin

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-base/reactive/trait-disposablemixin/

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

```rust
trait DisposableMixin: Sized
```

Adds a disposable to a group in the expression that creates it.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/reactive/disposable_mixin.rs#L5)

## Members

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

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

### dispose_with

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

Adds the disposable to `composite_disposable` and returns it.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.Base/reactive/disposable_mixin.rs#L7)

## Trait implementations

- [`DisposableMixin`](/docs/0.5.0/api/ferroui-base/reactive/trait-disposablemixin/)

## Availability

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