Struct atomptr::Ref[][src]

pub struct Ref<T> { /* fields omitted */ }
Expand description

An alias for a referenced pointer

Implementations

Consume this Ref wrapper to yield the underlying Arc<T>

If you want to take ownership of the underlying type data, and you can prove that only one strong-reference Arc exists to this type, you can use std::arc::Arc::try_unwrap() to peel the reference counter and take exclusive ownership.

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.