pub struct PropId(pub u16);Expand description
A setting’s index in its registry.
Interned so the merge is array indexing rather than string comparison. u16 because a
registry of 65,000 settings is not a thing that exists — mise, the largest in the fleet,
has 280.
Tuple Fields§
§0: u16Implementations§
Trait Implementations§
impl Copy for PropId
impl Eq for PropId
Source§impl Ord for PropId
impl Ord for PropId
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 PartialOrd for PropId
impl PartialOrd for PropId
impl StructuralPartialEq for PropId
Auto Trait Implementations§
impl Freeze for PropId
impl RefUnwindSafe for PropId
impl Send for PropId
impl Sync for PropId
impl Unpin for PropId
impl UnsafeUnpin for PropId
impl UnwindSafe for PropId
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