pub struct MessageIndex(/* private fields */);Expand description
Index of a MessageDescriptor within its owning pool.
The Ord impl is an arbitrary but stable total order over one pool’s
indices (so they can key ordered collections); it is not a documented
relationship to declaration or registration order. Comparing indices from
different pools is meaningless (the same cross-pool hazard as
PartialEq).
Trait Implementations§
Source§impl Clone for MessageIndex
impl Clone for MessageIndex
Source§fn clone(&self) -> MessageIndex
fn clone(&self) -> MessageIndex
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MessageIndex
Source§impl Debug for MessageIndex
impl Debug for MessageIndex
impl Eq for MessageIndex
Source§impl Hash for MessageIndex
impl Hash for MessageIndex
Source§impl Ord for MessageIndex
impl Ord for MessageIndex
Source§fn cmp(&self, other: &MessageIndex) -> Ordering
fn cmp(&self, other: &MessageIndex) -> Ordering
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 PartialEq for MessageIndex
impl PartialEq for MessageIndex
Source§fn eq(&self, other: &MessageIndex) -> bool
fn eq(&self, other: &MessageIndex) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for MessageIndex
impl PartialOrd for MessageIndex
impl StructuralPartialEq for MessageIndex
Auto Trait Implementations§
impl Freeze for MessageIndex
impl RefUnwindSafe for MessageIndex
impl Send for MessageIndex
impl Sync for MessageIndex
impl Unpin for MessageIndex
impl UnsafeUnpin for MessageIndex
impl UnwindSafe for MessageIndex
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