pub enum SlotStateValueRef<'a, T: SlotStateTypes> {
Free(&'a T::Free),
Occupied(&'a T::Occupied),
}
Variants§
Implementations§
Source§impl<'a, T: SlotStateTypes> SlotStateValueRef<'a, T>
impl<'a, T: SlotStateTypes> SlotStateValueRef<'a, T>
pub fn as_free(self) -> Result<&'a T::Free, SlotTrackerError>
pub fn as_occupied(self) -> Result<&'a T::Occupied, SlotTrackerError>
Trait Implementations§
Source§impl<'a, T: Clone + SlotStateTypes> Clone for SlotStateValueRef<'a, T>
impl<'a, T: Clone + SlotStateTypes> Clone for SlotStateValueRef<'a, T>
Source§fn clone(&self) -> SlotStateValueRef<'a, T>
fn clone(&self) -> SlotStateValueRef<'a, T>
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a, T: Debug + SlotStateTypes> Debug for SlotStateValueRef<'a, T>
impl<'a, T: Debug + SlotStateTypes> Debug for SlotStateValueRef<'a, T>
Source§impl<'a, T: Hash + SlotStateTypes> Hash for SlotStateValueRef<'a, T>
impl<'a, T: Hash + SlotStateTypes> Hash for SlotStateValueRef<'a, T>
Source§impl<'a, T: Ord + SlotStateTypes> Ord for SlotStateValueRef<'a, T>
impl<'a, T: Ord + SlotStateTypes> Ord for SlotStateValueRef<'a, T>
Source§impl<'a, T: PartialEq + SlotStateTypes> PartialEq for SlotStateValueRef<'a, T>
impl<'a, T: PartialEq + SlotStateTypes> PartialEq for SlotStateValueRef<'a, T>
Source§impl<'a, T: PartialOrd + SlotStateTypes> PartialOrd for SlotStateValueRef<'a, T>
impl<'a, T: PartialOrd + SlotStateTypes> PartialOrd for SlotStateValueRef<'a, T>
Source§fn partial_cmp(&self, other: &SlotStateValueRef<'a, T>) -> Option<Ordering>
fn partial_cmp(&self, other: &SlotStateValueRef<'a, T>) -> Option<Ordering>
impl<'a, T: Copy + SlotStateTypes> Copy for SlotStateValueRef<'a, T>
impl<'a, T: Eq + SlotStateTypes> Eq for SlotStateValueRef<'a, T>
impl<'a, T: SlotStateTypes> StructuralPartialEq for SlotStateValueRef<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for SlotStateValueRef<'a, T>
impl<'a, T> RefUnwindSafe for SlotStateValueRef<'a, T>
impl<'a, T> Send for SlotStateValueRef<'a, T>
impl<'a, T> Sync for SlotStateValueRef<'a, T>
impl<'a, T> Unpin for SlotStateValueRef<'a, T>
impl<'a, T> UnwindSafe for SlotStateValueRef<'a, T>
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)