Enum mixed_ref::MixedRefMut [] [src]

pub enum MixedRefMut<'a, T: ?Sized + 'a> {
    Owned(Box<T>),
    Borrowed(&'a mut T),
}

A reference to either owned or mutably borrowed data.

This acts similarly to MixedRef, except that the inner data is mutable.

Variants

Owned, boxed data.

Borrowed, mutable data.

Methods

impl<'a, T: ?Sized> MixedRefMut<'a, T>
[src]

Downcasts self into a reference to immutable data.

Trait Implementations

impl<'a, T: Debug + ?Sized + 'a> Debug for MixedRefMut<'a, T>
[src]

Formats the value using the given formatter.

impl<'a, T: Eq + ?Sized + 'a> Eq for MixedRefMut<'a, T>
[src]

impl<'a, T: Hash + ?Sized + 'a> Hash for MixedRefMut<'a, T>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl<'a, T: ?Sized + AsRef<U>, U: ?Sized + PartialEq> PartialEq<T> for MixedRefMut<'a, U>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a, T: Default> Default for MixedRefMut<'a, T>
[src]

Returns the "default value" for a type. Read more

impl<'a, T: ?Sized> From<&'a mut T> for MixedRefMut<'a, T>
[src]

Performs the conversion.

impl<'a, T: ?Sized> From<Box<T>> for MixedRefMut<'a, T>
[src]

Performs the conversion.

impl<'a> From<String> for MixedRefMut<'a, str>
[src]

Performs the conversion.

impl<'a, T> From<Vec<T>> for MixedRefMut<'a, [T]>
[src]

Performs the conversion.

impl<'a, T: ?Sized> Deref for MixedRefMut<'a, T>
[src]

The resulting type after dereferencing

The method called to dereference a value

impl<'a, T: ?Sized> DerefMut for MixedRefMut<'a, T>
[src]

The method called to mutably dereference a value

impl<'a, T: ?Sized> AsRef<T> for MixedRefMut<'a, T>
[src]

Performs the conversion.

impl<'a, T: ?Sized> AsMut<T> for MixedRefMut<'a, T>
[src]

Performs the conversion.

impl<'a, T: ?Sized> Borrow<T> for MixedRefMut<'a, T>
[src]

Immutably borrows from an owned value. Read more

impl<'a, T: ?Sized> BorrowMut<T> for MixedRefMut<'a, T>
[src]

Mutably borrows from an owned value. Read more