# NotAWeakReference

Version: 0.5.0
Framework commit: d503df2befa756e681fcdc6250e9552dc7388bea
Canonical URL: /docs/0.5.0/api/ferroui-reactiveui/routing/struct-notaweakreference/

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

```rust
struct NotAWeakReference
```

A reference to an object that is always alive (`NotAWeakReference`): it holds the object
strongly, for an API that expects something shaped like a weak reference. The message bus
holds its channels with it.

[View source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/routing/not_a_weak_reference.rs#L11)

## Members

- [`new`](#function-new)
- [`target`](#function-target)
- [`is_alive`](#function-is_alive)

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

### new

```rust
fn new(target: Rc<dyn Any>) -> Self
```

A reference to `target` (`NotAWeakReference(object)`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/routing/not_a_weak_reference.rs#L17)

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

### target

```rust
fn target(self: &Self) -> &Rc<dyn Any>
```

The object (`Target`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/routing/not_a_weak_reference.rs#L22)

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

### is_alive

```rust
fn is_alive(self: &Self) -> bool
```

Whether the object is alive: always, since the reference is strong (`IsAlive`).

[Source](https://github.com/wieslawsoltes/FerroUI/blob/d503df2befa756e681fcdc6250e9552dc7388bea/src/FerroUI.ReactiveUI/routing/not_a_weak_reference.rs#L27)

## Trait implementations

- `Send`
- `Sync`
- `Freeze`
- `UnsafeUnpin`
- `Unpin`
- `UnwindSafe`
- `RefUnwindSafe`
- `Borrow<T>`
- `BorrowMut<T>`
- `CloneToUninit`
- `Into<U>`
- `From<T>`
- `TryInto<U>`
- `TryFrom<U>`
- `Any`
- `ToOwned`
- `Clone`
- `Debug`

## Availability

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