Struct atomic_pool::Box
source · [−]pub struct Box<P: Pool> { /* private fields */ }Implementations
Trait Implementations
sourceimpl<P: Pool> AsMutSlice for Box<P> where
P::Item: AsMutSlice,
impl<P: Pool> AsMutSlice for Box<P> where
P::Item: AsMutSlice,
sourcefn as_mut_slice(&mut self) -> &mut [Self::Element]
fn as_mut_slice(&mut self) -> &mut [Self::Element]
Returns the mutable slice view of Self
sourceimpl<P: Pool> AsMutSlice for Box<P> where
P::Item: AsMutSlice,
impl<P: Pool> AsMutSlice for Box<P> where
P::Item: AsMutSlice,
sourcefn as_mut_slice(&mut self) -> &mut [Self::Element]
fn as_mut_slice(&mut self) -> &mut [Self::Element]
Returns the mutable slice view of Self
sourceimpl<P: Pool> Ord for Box<P> where
P::Item: Ord,
impl<P: Pool> Ord for Box<P> where
P::Item: Ord,
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<P: Pool> PartialOrd<Box<P>> for Box<P> where
P::Item: PartialOrd,
impl<P: Pool> PartialOrd<Box<P>> for Box<P> where
P::Item: PartialOrd,
sourcefn partial_cmp(&self, rhs: &Box<P>) -> Option<Ordering>
fn partial_cmp(&self, rhs: &Box<P>) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl<P: Pool> Eq for Box<P> where
P::Item: Eq,
impl<P: Pool> Send for Box<P> where
P::Item: Send,
impl<P: Pool> StableDeref for Box<P>
impl<P: Pool> Sync for Box<P> where
P::Item: Sync,
Auto Trait Implementations
impl<P> RefUnwindSafe for Box<P> where
<P as Pool>::Item: RefUnwindSafe,
impl<P> Unpin for Box<P>
impl<P> UnwindSafe for Box<P> where
<P as Pool>::Item: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more