pub enum SlotStateValueRefMut<'a, T: SlotStateTypes> {
Free(&'a mut T::Free),
Occupied(&'a mut T::Occupied),
}Variants§
Implementations§
Source§impl<'a, T: SlotStateTypes> SlotStateValueRefMut<'a, T>
impl<'a, T: SlotStateTypes> SlotStateValueRefMut<'a, T>
pub fn as_free(self) -> Result<&'a mut T::Free, SlotTrackerError>
pub fn as_occupied(self) -> Result<&'a mut T::Occupied, SlotTrackerError>
Trait Implementations§
Source§impl<'a, T: Debug + SlotStateTypes> Debug for SlotStateValueRefMut<'a, T>
impl<'a, T: Debug + SlotStateTypes> Debug for SlotStateValueRefMut<'a, T>
impl<'a, T: Eq + SlotStateTypes> Eq for SlotStateValueRefMut<'a, T>
Source§impl<'a, T: Hash + SlotStateTypes> Hash for SlotStateValueRefMut<'a, T>
impl<'a, T: Hash + SlotStateTypes> Hash for SlotStateValueRefMut<'a, T>
Source§impl<'a, T: Ord + SlotStateTypes> Ord for SlotStateValueRefMut<'a, T>
impl<'a, T: Ord + SlotStateTypes> Ord for SlotStateValueRefMut<'a, T>
Source§fn cmp(&self, other: &SlotStateValueRefMut<'a, T>) -> Ordering
fn cmp(&self, other: &SlotStateValueRefMut<'a, T>) -> Ordering
1.21.0 (const: unstable)§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