pub struct ExtensionIndex(/* private fields */);Expand description
Pool-local index of a registered extension.
Same contract as MessageIndex / EnumIndex: stable for the
lifetime of the pool, no cross-pool identity.
Trait Implementations§
Source§impl Clone for ExtensionIndex
impl Clone for ExtensionIndex
Source§fn clone(&self) -> ExtensionIndex
fn clone(&self) -> ExtensionIndex
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 moreSource§impl Debug for ExtensionIndex
impl Debug for ExtensionIndex
Source§impl Hash for ExtensionIndex
impl Hash for ExtensionIndex
Source§impl Ord for ExtensionIndex
impl Ord for ExtensionIndex
Source§fn cmp(&self, other: &ExtensionIndex) -> Ordering
fn cmp(&self, other: &ExtensionIndex) -> 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 ExtensionIndex
impl PartialEq for ExtensionIndex
Source§fn eq(&self, other: &ExtensionIndex) -> bool
fn eq(&self, other: &ExtensionIndex) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ExtensionIndex
impl PartialOrd for ExtensionIndex
impl Copy for ExtensionIndex
impl Eq for ExtensionIndex
impl StructuralPartialEq for ExtensionIndex
Auto Trait Implementations§
impl Freeze for ExtensionIndex
impl RefUnwindSafe for ExtensionIndex
impl Send for ExtensionIndex
impl Sync for ExtensionIndex
impl Unpin for ExtensionIndex
impl UnsafeUnpin for ExtensionIndex
impl UnwindSafe for ExtensionIndex
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