pub struct LayerId<Id>(pub Id);Expand description
Stable numeric identifier for one property layer.
§Performance
Copying, comparing, ordering, hashing, and debug-formatting are O(1).
Tuple Fields§
§0: IdTrait Implementations§
Source§impl<Id: Ord> Ord for LayerId<Id>
impl<Id: Ord> Ord for LayerId<Id>
1.21.0 (const: unstable) · Source§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
Source§impl<Id: PartialEq> PartialEq for LayerId<Id>
impl<Id: PartialEq> PartialEq for LayerId<Id>
Source§impl<Id: PartialOrd> PartialOrd for LayerId<Id>
impl<Id: PartialOrd> PartialOrd for LayerId<Id>
impl<Id: Copy> Copy for LayerId<Id>
impl<Id: Eq> Eq for LayerId<Id>
impl<Id> StructuralPartialEq for LayerId<Id>
Auto Trait Implementations§
impl<Id> Freeze for LayerId<Id>where
Id: Freeze,
impl<Id> RefUnwindSafe for LayerId<Id>where
Id: RefUnwindSafe,
impl<Id> Send for LayerId<Id>where
Id: Send,
impl<Id> Sync for LayerId<Id>where
Id: Sync,
impl<Id> Unpin for LayerId<Id>where
Id: Unpin,
impl<Id> UnsafeUnpin for LayerId<Id>where
Id: UnsafeUnpin,
impl<Id> UnwindSafe for LayerId<Id>where
Id: 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