pub struct SortKey(/* private fields */);Expand description
A sort key for sorting locks. This must be unique to each lock.
A unique key can be generated with SortKey::new.
use sortlock::SortKey;
let key = SortKey::new();
let key2 = SortKey::new();
assert_ne!(key, key2);Implementations§
Trait Implementations§
Source§impl Ord for SortKey
impl Ord for SortKey
Source§impl PartialOrd for SortKey
impl PartialOrd for SortKey
impl Copy for SortKey
impl Eq for SortKey
impl StructuralPartialEq for SortKey
Auto Trait Implementations§
impl Freeze for SortKey
impl RefUnwindSafe for SortKey
impl Send for SortKey
impl Sync for SortKey
impl Unpin for SortKey
impl UnwindSafe for SortKey
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