pub struct LockKey {
pub id: u32,
}Available on crate feature
vanilla only.Fields
id: u32Implementations
Trait Implementations
sourceimpl Ord for LockKey
impl Ord for LockKey
1.21.0 · sourceconst fn max(self, other: Self) -> Selfwhere
Self: Sized,
const fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Selfwhere
Self: Sized,
const fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<LockKey> for LockKey
impl PartialOrd<LockKey> for LockKey
sourcefn partial_cmp(&self, other: &LockKey) -> Option<Ordering>
fn partial_cmp(&self, other: &LockKey) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moreimpl Copy for LockKey
impl Eq for LockKey
impl StructuralEq for LockKey
impl StructuralPartialEq for LockKey
Auto Trait Implementations
impl RefUnwindSafe for LockKey
impl Send for LockKey
impl Sync for LockKey
impl Unpin for LockKey
impl UnwindSafe for LockKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more