[][src]Struct thin_dst::ThinRef

pub struct ThinRef<'a, Head, SliceItem> { /* fields omitted */ }

Methods

impl<'a, Head, SliceItem> ThinRef<'a, Head, SliceItem>[src]

pub unsafe fn from_erased(ptr: ErasedPtr) -> Self[src]

Construct an owned pointer from an erased pointer.

Safety

This pointer must logically own a valid instance of Self.

pub fn erase(this: Self) -> ErasedPtr[src]

Convert this owned pointer into an erased pointer.

To avoid a memory leak the pointer must be converted back using Self::from_erased.

Trait Implementations

impl<'a, Head, SliceItem> Clone for ThinRef<'a, Head, SliceItem> where
    &'a ThinData<Head, SliceItem>: Clone
[src]

impl<'a, Head, SliceItem> Copy for ThinRef<'a, Head, SliceItem> where
    &'a ThinData<Head, SliceItem>: Copy
[src]

impl<'a, Head, SliceItem> Debug for ThinRef<'a, Head, SliceItem> where
    &'a ThinData<Head, SliceItem>: Debug
[src]

impl<'a, Head, SliceItem> Deref for ThinRef<'a, Head, SliceItem> where
    &'a ThinData<Head, SliceItem>: Deref
[src]

type Target = ThinData<Head, SliceItem>

The resulting type after dereferencing.

impl<'a, Head, SliceItem> DerefMut for ThinRef<'a, Head, SliceItem> where
    &'a ThinData<Head, SliceItem>: DerefMut
[src]

impl<'a, Head, SliceItem> Eq for ThinRef<'a, Head, SliceItem> where
    &'a ThinData<Head, SliceItem>: Eq
[src]

impl<'a, Head, SliceItem> From<&'a ThinData<Head, SliceItem>> for ThinRef<'a, Head, SliceItem>[src]

impl<'a, Head, SliceItem> From<ThinRef<'a, Head, SliceItem>> for &'a ThinData<Head, SliceItem>[src]

impl<'a, Head, SliceItem> Hash for ThinRef<'a, Head, SliceItem> where
    &'a ThinData<Head, SliceItem>: Hash
[src]

impl<'a, Head, SliceItem> PartialEq<&'a ThinData<Head, SliceItem>> for ThinRef<'a, Head, SliceItem> where
    &'a ThinData<Head, SliceItem>: PartialEq
[src]

impl<'a, Head, SliceItem> PartialEq<ThinRef<'a, Head, SliceItem>> for ThinRef<'a, Head, SliceItem> where
    &'a ThinData<Head, SliceItem>: PartialEq
[src]

impl<'a, Head, SliceItem> Send for ThinRef<'a, Head, SliceItem> where
    &'a ThinData<Head, SliceItem>: Send
[src]

impl<'a, Head, SliceItem> Sync for ThinRef<'a, Head, SliceItem> where
    &'a ThinData<Head, SliceItem>: Sync
[src]

Auto Trait Implementations

impl<'a, Head, SliceItem> Unpin for ThinRef<'a, Head, SliceItem>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.