pub enum CostCell<Cost> {
Solid,
Cost(Cost),
}Variants§
Implementations§
Trait Implementations§
impl<Cost: Copy> Copy for CostCell<Cost>
impl<Cost: Eq> Eq for CostCell<Cost>
impl<Cost> StructuralPartialEq for CostCell<Cost>
Auto Trait Implementations§
impl<Cost> Freeze for CostCell<Cost>where
Cost: Freeze,
impl<Cost> RefUnwindSafe for CostCell<Cost>where
Cost: RefUnwindSafe,
impl<Cost> Send for CostCell<Cost>where
Cost: Send,
impl<Cost> Sync for CostCell<Cost>where
Cost: Sync,
impl<Cost> Unpin for CostCell<Cost>where
Cost: Unpin,
impl<Cost> UnwindSafe for CostCell<Cost>where
Cost: 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