pub struct QCellOwnerID(_);
Expand description

Internal ID associated with a QCell owner.

The only purpose of this is to create QCell instances without requiring a borrow on the owner. A QCellOwnerID can be passed to any code that needs to create QCell instances. However to access those QCell instances after creation will still require a borrow on the original owner. Create a QCellOwnerID from an owner using owner.into() or owner.id().

Safety

Whilst the existence of this type does mean that an ID can exist longer than than the owner, all that allows is new QCell instances to be created after the owner has gone. But QCell instances can outlive the owner in any case, so this makes no difference to safety.

Implementations

Create a new cell owned by this owner-ID. See also QCell::new.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

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.