[−][src]Struct thin_dst::ThinRc
Methods
impl<Head, SliceItem> ThinRc<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
.
impl<Head, SliceItem> ThinRc<Head, SliceItem>
[src]
pub fn new<I>(head: Head, slice: I) -> Self where
I: IntoIterator<Item = SliceItem>,
I::IntoIter: ExactSizeIterator,
[src]
I: IntoIterator<Item = SliceItem>,
I::IntoIter: ExactSizeIterator,
Trait Implementations
impl<Head, SliceItem> From<Rc<ThinData<Head, SliceItem>>> for ThinRc<Head, SliceItem>
[src]
impl<Head, SliceItem> Debug for ThinRc<Head, SliceItem> where
ThinData<Head, SliceItem>: Debug,
[src]
ThinData<Head, SliceItem>: Debug,
impl<Head, SliceItem> PartialEq<ThinRc<Head, SliceItem>> for ThinRc<Head, SliceItem> where
ThinData<Head, SliceItem>: PartialEq,
[src]
ThinData<Head, SliceItem>: PartialEq,
impl<Head, SliceItem> Eq for ThinRc<Head, SliceItem> where
ThinData<Head, SliceItem>: Eq,
[src]
ThinData<Head, SliceItem>: Eq,
impl<Head, SliceItem> Deref for ThinRc<Head, SliceItem> where
Rc<ThinData<Head, SliceItem>>: Deref,
[src]
Rc<ThinData<Head, SliceItem>>: Deref,
type Target = ThinData<Head, SliceItem>
The resulting type after dereferencing.
fn deref(&self) -> &ThinData<Head, SliceItem>
[src]
impl<Head, SliceItem> DerefMut for ThinRc<Head, SliceItem> where
Rc<ThinData<Head, SliceItem>>: DerefMut,
[src]
Rc<ThinData<Head, SliceItem>>: DerefMut,
impl<Head, SliceItem> Drop for ThinRc<Head, SliceItem>
[src]
impl<Head, SliceItem> Send for ThinRc<Head, SliceItem> where
Rc<ThinData<Head, SliceItem>>: Send,
[src]
Rc<ThinData<Head, SliceItem>>: Send,
impl<Head, SliceItem> Sync for ThinRc<Head, SliceItem> where
Rc<ThinData<Head, SliceItem>>: Sync,
[src]
Rc<ThinData<Head, SliceItem>>: Sync,
impl<Head, SliceItem> Into<Rc<ThinData<Head, SliceItem>>> for ThinRc<Head, SliceItem>
[src]
impl<Head, SliceItem> Clone for ThinRc<Head, SliceItem> where
Rc<ThinData<Head, SliceItem>>: Clone,
[src]
Rc<ThinData<Head, SliceItem>>: Clone,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for 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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.