pub struct StructDefInstantiation {
pub def: StructDefinitionIndex,
pub type_parameters: SignatureIndex,
}
Expand description
A complete or partial instantiation of a generic struct
Fields§
§def: StructDefinitionIndex
§type_parameters: SignatureIndex
Trait Implementations§
source§impl Arbitrary for StructDefInstantiation
impl Arbitrary for StructDefInstantiation
§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<(<StructDefinitionIndex as Arbitrary>::Strategy, <SignatureIndex as Arbitrary>::Strategy), fn(_: (StructDefinitionIndex, SignatureIndex)) -> StructDefInstantiation>
type Strategy = Map<(<StructDefinitionIndex as Arbitrary>::Strategy, <SignatureIndex as Arbitrary>::Strategy), fn(_: (StructDefinitionIndex, SignatureIndex)) -> StructDefInstantiation>
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 StructDefInstantiation
impl Clone for StructDefInstantiation
source§fn clone(&self) -> StructDefInstantiation
fn clone(&self) -> StructDefInstantiation
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 StructDefInstantiation
impl Debug for StructDefInstantiation
source§impl Hash for StructDefInstantiation
impl Hash for StructDefInstantiation
source§impl PartialEq<StructDefInstantiation> for StructDefInstantiation
impl PartialEq<StructDefInstantiation> for StructDefInstantiation
source§fn eq(&self, other: &StructDefInstantiation) -> bool
fn eq(&self, other: &StructDefInstantiation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.