[−][src]Struct thin_dst::ThinRef
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]
&'a ThinData<Head, SliceItem>: Clone,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a, Head, SliceItem> Copy for ThinRef<'a, Head, SliceItem> where
&'a ThinData<Head, SliceItem>: Copy,
[src]
&'a ThinData<Head, SliceItem>: Copy,
impl<'a, Head, SliceItem> Debug for ThinRef<'a, Head, SliceItem> where
&'a ThinData<Head, SliceItem>: Debug,
[src]
&'a ThinData<Head, SliceItem>: Debug,
impl<'a, Head, SliceItem> Deref for ThinRef<'a, Head, SliceItem> where
&'a ThinData<Head, SliceItem>: Deref,
[src]
&'a ThinData<Head, SliceItem>: Deref,
type Target = ThinData<Head, SliceItem>
The resulting type after dereferencing.
fn deref(&self) -> &ThinData<Head, SliceItem>
[src]
impl<'a, Head, SliceItem> DerefMut for ThinRef<'a, Head, SliceItem> where
&'a ThinData<Head, SliceItem>: DerefMut,
[src]
&'a ThinData<Head, SliceItem>: DerefMut,
impl<'a, Head, SliceItem> Eq for ThinRef<'a, Head, SliceItem> where
&'a ThinData<Head, SliceItem>: Eq,
[src]
&'a ThinData<Head, SliceItem>: Eq,
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]
&'a ThinData<Head, SliceItem>: Hash,
fn hash<H>(&self, state: &mut H) where
H: Hasher,
[src]
H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<'a, Head, SliceItem> PartialEq<&'a ThinData<Head, SliceItem>> for ThinRef<'a, Head, SliceItem> where
&'a ThinData<Head, SliceItem>: PartialEq,
[src]
&'a ThinData<Head, SliceItem>: PartialEq,
fn eq(&self, other: &&'a ThinData<Head, SliceItem>) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<'a, Head, SliceItem> PartialEq<ThinRef<'a, Head, SliceItem>> for ThinRef<'a, Head, SliceItem> where
&'a ThinData<Head, SliceItem>: PartialEq,
[src]
&'a ThinData<Head, SliceItem>: PartialEq,
impl<'a, Head, SliceItem> Send for ThinRef<'a, Head, SliceItem> where
&'a ThinData<Head, SliceItem>: Send,
[src]
&'a ThinData<Head, SliceItem>: Send,
impl<'a, Head, SliceItem> Sync for ThinRef<'a, Head, SliceItem> where
&'a ThinData<Head, SliceItem>: Sync,
[src]
&'a ThinData<Head, SliceItem>: Sync,
Auto Trait Implementations
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>,