[][src]Struct refpool::fakepool::PoolRef

pub struct PoolRef<A>(_);

A fake PoolRef which wraps an Rc.

Implementations

impl<A> PoolRef<A>[src]

pub fn default(_pool: &Pool<A>) -> Self where
    A: PoolDefault
[src]

pub fn new(_pool: &Pool<A>, value: A) -> Self[src]

pub fn clone_from(_pool: &Pool<A>, value: &A) -> Self where
    A: PoolClone
[src]

pub fn pin_default(_pool: &Pool<A>) -> Pin<Self> where
    A: PoolDefault
[src]

pub fn pin(_pool: &Pool<A>, value: A) -> Pin<Self>[src]

pub fn cloned(_pool: &Pool<A>, this: &Self) -> Self where
    A: PoolClone
[src]

pub fn make_mut<'a>(_pool: &Pool<A>, this: &'a mut Self) -> &'a mut A where
    A: PoolClone
[src]

pub fn get_mut(this: &mut Self) -> Option<&mut A>[src]

pub fn try_unwrap(this: Self) -> Result<A, Self>[src]

pub fn unwrap_or_clone(this: Self) -> A where
    A: PoolClone
[src]

pub fn ptr_eq(left: &Self, right: &Self) -> bool[src]

pub fn strong_count(this: &Self) -> usize[src]

pub fn into_raw(this: PoolRef<A>) -> *const A[src]

pub unsafe fn from_raw(ptr: *mut A) -> Self[src]

Trait Implementations

impl<A> AsRef<A> for PoolRef<A>[src]

impl<A> Borrow<A> for PoolRef<A>[src]

impl<A> Clone for PoolRef<A>[src]

impl<A> Debug for PoolRef<A> where
    A: Debug
[src]

impl<A: Default> Default for PoolRef<A>[src]

impl<A> Deref for PoolRef<A>[src]

type Target = A

The resulting type after dereferencing.

impl<A> Display for PoolRef<A> where
    A: Display
[src]

impl<A> Eq for PoolRef<A> where
    A: Eq
[src]

impl<A> Hash for PoolRef<A> where
    A: Hash
[src]

impl<A> Ord for PoolRef<A> where
    A: Ord
[src]

impl<A> PartialEq<PoolRef<A>> for PoolRef<A> where
    A: PartialEq
[src]

impl<A> PartialOrd<PoolRef<A>> for PoolRef<A> where
    A: PartialOrd
[src]

impl<A> Pointer for PoolRef<A>[src]

Auto Trait Implementations

impl<A> !RefUnwindSafe for PoolRef<A>

impl<A> !Send for PoolRef<A>

impl<A> !Sync for PoolRef<A>

impl<A> Unpin for PoolRef<A>

impl<A> UnwindSafe for PoolRef<A> where
    A: RefUnwindSafe

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> ToString for T where
    T: Display + ?Sized
[src]

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.