[−][src]Struct qcell::QCellOwnerID
Internal ID associated with a QCellOwner
.
The only purpose of this is to create QCell
instances without
requiring a borrow on the QCellOwner
.
Safety: Whilst the existence of this type does mean that an ID can
exist longer than than the QCellOwner
, all that allows is new
QCell
instances to be created after the QCellOwner
has gone.
But QCell
instances can outlive the owner in any case, so this
makes no difference to safety.
Implementations
impl QCellOwnerID
[src]
pub fn cell<T>(self, value: T) -> QCell<T>
[src]
Create a new cell owned by this owner-ID. See also
QCell::new
.
Trait Implementations
impl Clone for QCellOwnerID
[src]
fn clone(&self) -> QCellOwnerID
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for QCellOwnerID
[src]
Auto Trait Implementations
impl RefUnwindSafe for QCellOwnerID
impl Send for QCellOwnerID
impl Sync for QCellOwnerID
impl Unpin for QCellOwnerID
impl UnwindSafe for QCellOwnerID
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,