Struct move_binary_format::file_format::FieldDefinition
source · pub struct FieldDefinition {
pub name: IdentifierIndex,
pub signature: TypeSignature,
}
Expand description
A FieldDefinition
is the definition of a field: its name and the field type.
Fields§
§name: IdentifierIndex
The name of the field.
signature: TypeSignature
The type of the field.
Trait Implementations§
source§impl Arbitrary for FieldDefinition
impl Arbitrary for FieldDefinition
§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<(<IdentifierIndex as Arbitrary>::Strategy, <TypeSignature as Arbitrary>::Strategy), fn(_: (IdentifierIndex, TypeSignature)) -> FieldDefinition>
type Strategy = Map<(<IdentifierIndex as Arbitrary>::Strategy, <TypeSignature as Arbitrary>::Strategy), fn(_: (IdentifierIndex, TypeSignature)) -> FieldDefinition>
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 FieldDefinition
impl Clone for FieldDefinition
source§fn clone(&self) -> FieldDefinition
fn clone(&self) -> FieldDefinition
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 FieldDefinition
impl Debug for FieldDefinition
source§impl PartialEq<FieldDefinition> for FieldDefinition
impl PartialEq<FieldDefinition> for FieldDefinition
source§fn eq(&self, other: &FieldDefinition) -> bool
fn eq(&self, other: &FieldDefinition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.