# ViewLink

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactiveui-controls/enum-viewlink/

**enum** · [`ferroui-reactiveui-controls`](/docs/0.5.0/api/ferroui-reactiveui-controls/) · v0.5.0

```rust
enum ViewLink<C: ObjectType>
```

How an adapter holds its control: strongly, for a view that is handed to others (a view a
locator creates), or weakly, for the view a control uses for itself (its own activation), so
that the control and its handlers do not keep each other alive.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI.Controls/view_control.rs#L59)

## Members

- [`Strong`](#variant-strong)
- [`Weak`](#variant-weak)
- [`get`](#function-get)

<a id="variant-strong"></a>

### Strong

```rust
Strong(ferroui_base::Ref<C>)
```

A strong reference.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI.Controls/view_control.rs#L61)

<a id="variant-weak"></a>

### Weak

```rust
Weak(ferroui_base::WeakRef<C>)
```

A weak reference.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI.Controls/view_control.rs#L63)

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

### get

```rust
fn get(self: &Self) -> Option<Ref<C>>
```

The control, while it is alive.

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI.Controls/view_control.rs#L68)

## Trait implementations

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

## Availability

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