pub struct CellElem<T>where
    T: Copy + PartialEq<T>,{
    pub cell: Cell<T>,
}Expand description
Cell is much cheaper than RefCell, used to store basic types
Fields§
§cell: Cell<T>Implementations§
source§impl<T> CellElem<T>where
    T: Copy + PartialEq<T>,
 
impl<T> CellElem<T>where T: Copy + PartialEq<T>,
pub fn into_inner(self) -> T
pub fn slice_into_inner<U>(inner_slice: &[CellElem<T>]) -> &[U]
pub fn slice_into_inner_mut<U>(inner_slice: &mut [CellElem<T>]) -> &mut [U]
pub fn slice_ref_into_inner<U>( inner_slice: Ref<'_, [CellElem<T>]> ) -> Ref<'_, [U]>
pub fn slice_ref_into_inner_mut<U>( inner_slice: RefMut<'_, [CellElem<T>]> ) -> RefMut<'_, [U]>
Trait Implementations§
source§impl<T> Ord for CellElem<T>where
    T: Ord + Copy + PartialEq<T>,
 
impl<T> Ord for CellElem<T>where T: Ord + Copy + PartialEq<T>,
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
    Self: Sized,
 
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<T> PartialEq<CellElem<T>> for CellElem<T>where
    T: PartialEq<T> + Copy,
 
impl<T> PartialEq<CellElem<T>> for CellElem<T>where T: PartialEq<T> + Copy,
source§impl<T> PartialOrd<CellElem<T>> for CellElem<T>where
    T: PartialOrd<T> + Copy + PartialEq<T>,
 
impl<T> PartialOrd<CellElem<T>> for CellElem<T>where T: PartialOrd<T> + Copy + PartialEq<T>,
1.0.0 · source§fn 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