pub struct MsgId(/* private fields */);Expand description
A message id: which message of a build’s catalogs. tr! and the
generated module make them; an application compares, hashes and passes
them, and never builds one from a number.
Inside, low 24 bits are an index into one catalog chunk’s message table and the high 8 bits the chunk (plans/02-catalog-format.md §3) — the catalog’s layout, which 1.x does not promise, so the methods that expose it are hidden. Until per-route chunking exists every message is in chunk 0.
Trait Implementations§
impl Copy for MsgId
impl Eq for MsgId
Source§impl Ord for MsgId
impl Ord for MsgId
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for MsgId
impl PartialOrd for MsgId
impl StructuralPartialEq for MsgId
Auto Trait Implementations§
impl Freeze for MsgId
impl RefUnwindSafe for MsgId
impl Send for MsgId
impl Sync for MsgId
impl Unpin for MsgId
impl UnsafeUnpin for MsgId
impl UnwindSafe for MsgId
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