pub struct CellElem<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>
impl<T> CellElem<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>
impl<T> Ord for CellElem<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> PartialOrd for CellElem<T>
impl<T> PartialOrd for CellElem<T>
impl<T> Eq for CellElem<T>
impl<T> StructuralPartialEq for CellElem<T>
Auto Trait Implementations§
impl<T> !Freeze for CellElem<T>
impl<T> !RefUnwindSafe for CellElem<T>
impl<T> Send for CellElem<T>where
T: Send,
impl<T> !Sync for CellElem<T>
impl<T> Unpin for CellElem<T>where
T: Unpin,
impl<T> UnwindSafe for CellElem<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more