[−][src]Struct refpool::fakepool::PoolRef
A fake PoolRef
which wraps an Rc
.
Implementations
impl<A> PoolRef<A>
[src]
pub fn default(_pool: &Pool<A>) -> Self where
A: PoolDefault,
[src]
A: PoolDefault,
pub fn new(_pool: &Pool<A>, value: A) -> Self
[src]
pub fn clone_from(_pool: &Pool<A>, value: &A) -> Self where
A: PoolClone,
[src]
A: PoolClone,
pub fn pin_default(_pool: &Pool<A>) -> Pin<Self> where
A: PoolDefault,
[src]
A: PoolDefault,
pub fn pin(_pool: &Pool<A>, value: A) -> Pin<Self>
[src]
pub fn cloned(_pool: &Pool<A>, this: &Self) -> Self where
A: PoolClone,
[src]
A: PoolClone,
pub fn make_mut<'a>(_pool: &Pool<A>, this: &'a mut Self) -> &'a mut A where
A: PoolClone,
[src]
A: PoolClone,
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]
A: PoolClone,
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]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<A> Debug for PoolRef<A> where
A: Debug,
[src]
A: Debug,
impl<A: Default> Default for PoolRef<A>
[src]
impl<A> Deref for PoolRef<A>
[src]
impl<A> Display for PoolRef<A> where
A: Display,
[src]
A: Display,
impl<A> Eq for PoolRef<A> where
A: Eq,
[src]
A: Eq,
impl<A> Hash for PoolRef<A> where
A: Hash,
[src]
A: Hash,
fn hash<H: Hasher>(&self, hasher: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<A> Ord for PoolRef<A> where
A: Ord,
[src]
A: Ord,
fn cmp(&self, other: &Self) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<A> PartialEq<PoolRef<A>> for PoolRef<A> where
A: PartialEq,
[src]
A: PartialEq,
impl<A> PartialOrd<PoolRef<A>> for PoolRef<A> where
A: PartialOrd,
[src]
A: PartialOrd,
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[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,
A: RefUnwindSafe,
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,