Struct move_binary_format::file_format::ConstantPoolIndex
source · pub struct ConstantPoolIndex(pub TableIndex);
Expand description
Index into the ConstantPool
table.
Tuple Fields§
§0: TableIndex
Implementations§
source§impl ConstantPoolIndex
impl ConstantPoolIndex
Returns an instance of the given Index
.
pub fn new(idx: TableIndex) -> Self
Trait Implementations§
source§impl Arbitrary for ConstantPoolIndex
impl Arbitrary for ConstantPoolIndex
§type Parameters = ()
type Parameters = ()
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = Map<<u16 as Arbitrary>::Strategy, fn(_: u16) -> ConstantPoolIndex>
type Strategy = Map<<u16 as Arbitrary>::Strategy, fn(_: u16) -> ConstantPoolIndex>
The type of
Strategy
used to generate values of type Self
.source§fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
fn arbitrary_with(_top: Self::Parameters) -> Self::Strategy
source§impl Clone for ConstantPoolIndex
impl Clone for ConstantPoolIndex
source§fn clone(&self) -> ConstantPoolIndex
fn clone(&self) -> ConstantPoolIndex
Returns a copy of the value. Read more
1.0.0 · 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 ConstantPoolIndex
impl Debug for ConstantPoolIndex
source§impl Default for ConstantPoolIndex
impl Default for ConstantPoolIndex
source§fn default() -> ConstantPoolIndex
fn default() -> ConstantPoolIndex
Returns the “default value” for a type. Read more
source§impl Display for ConstantPoolIndex
impl Display for ConstantPoolIndex
source§impl Hash for ConstantPoolIndex
impl Hash for ConstantPoolIndex
source§impl ModuleIndex for ConstantPoolIndex
impl ModuleIndex for ConstantPoolIndex
source§impl Ord for ConstantPoolIndex
impl Ord for ConstantPoolIndex
source§fn cmp(&self, other: &ConstantPoolIndex) -> Ordering
fn cmp(&self, other: &ConstantPoolIndex) -> Ordering
1.21.0 · 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<ConstantPoolIndex> for ConstantPoolIndex
impl PartialEq<ConstantPoolIndex> for ConstantPoolIndex
source§fn eq(&self, other: &ConstantPoolIndex) -> bool
fn eq(&self, other: &ConstantPoolIndex) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ConstantPoolIndex> for ConstantPoolIndex
impl PartialOrd<ConstantPoolIndex> for ConstantPoolIndex
source§fn partial_cmp(&self, other: &ConstantPoolIndex) -> Option<Ordering>
fn partial_cmp(&self, other: &ConstantPoolIndex) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more