# StableCompositeDisposable

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactive/disposables/struct-stablecompositedisposable/

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

```rust
struct StableCompositeDisposable
```

A fixed group of disposables that are disposed together (`StableCompositeDisposable`): unlike a
`CompositeDisposable` nothing can be added or removed.

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

## Members

- [`create`](#function-create)
- [`create_from`](#function-create_from)

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

### create

```rust
fn create(first: Rc<dyn IDisposable>, second: Rc<dyn IDisposable>) -> Rc<dyn ICancelable>
```

A group of two disposables (`Create(IDisposable, IDisposable)`).

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

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

### create_from

```rust
fn create_from(disposables: impl IntoIterator<Item = Rc<dyn IDisposable>>) -> Rc<dyn ICancelable>
```

A group of the given disposables (`Create(params IDisposable[])`).

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

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- [`IDisposable`](/docs/0.5.0/api/ferroui-base/reactive/use-idisposable/)
- [`ICancelable`](/docs/0.5.0/api/ferroui-reactive/disposables/trait-icancelable/)

## Availability

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