Struct move_binary_format::file_format::FunctionSignature
source · pub struct FunctionSignature {
pub return_: Vec<SignatureToken>,
pub parameters: Vec<SignatureToken>,
pub type_parameters: Vec<AbilitySet>,
}
Expand description
A FunctionSignature
in internally used to create a unique representation of the overall
signature as need. Consider deprecated…
Fields§
§return_: Vec<SignatureToken>
The list of return types.
parameters: Vec<SignatureToken>
The list of arguments to the function.
type_parameters: Vec<AbilitySet>
The type formals (identified by their index into the vec) and their constraints
Trait Implementations§
source§impl Arbitrary for FunctionSignature
impl Arbitrary for FunctionSignature
§type Parameters = usize
type Parameters = usize
The type of parameters that
arbitrary_with
accepts for configuration
of the generated Strategy
. Parameters must implement Default
.§type Strategy = Map<(BoxedStrategy<Vec<SignatureToken, Global>>, BoxedStrategy<Vec<SignatureToken, Global>>, <Vec<AbilitySet, Global> as Arbitrary>::Strategy), fn(_: (Vec<SignatureToken, Global>, Vec<SignatureToken, Global>, Vec<AbilitySet, Global>)) -> FunctionSignature>
type Strategy = Map<(BoxedStrategy<Vec<SignatureToken, Global>>, BoxedStrategy<Vec<SignatureToken, Global>>, <Vec<AbilitySet, Global> as Arbitrary>::Strategy), fn(_: (Vec<SignatureToken, Global>, Vec<SignatureToken, Global>, Vec<AbilitySet, Global>)) -> FunctionSignature>
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 FunctionSignature
impl Clone for FunctionSignature
source§fn clone(&self) -> FunctionSignature
fn clone(&self) -> FunctionSignature
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 FunctionSignature
impl Debug for FunctionSignature
source§impl Hash for FunctionSignature
impl Hash for FunctionSignature
source§impl PartialEq<FunctionSignature> for FunctionSignature
impl PartialEq<FunctionSignature> for FunctionSignature
source§fn eq(&self, other: &FunctionSignature) -> bool
fn eq(&self, other: &FunctionSignature) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.