Struct move_lang::hlir::ast::FunctionSignature
source · pub struct FunctionSignature {
pub type_parameters: Vec<TParam>,
pub parameters: Vec<(Var, SingleType)>,
pub return_type: Type,
}
Fields§
§type_parameters: Vec<TParam>
§parameters: Vec<(Var, SingleType)>
§return_type: Type
Implementations§
source§impl FunctionSignature
impl FunctionSignature
pub fn is_parameter(&self, v: &Var) -> bool
Trait Implementations§
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 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 ==
.impl Eq for FunctionSignature
impl StructuralEq for FunctionSignature
impl StructuralPartialEq for FunctionSignature
Auto Trait Implementations§
impl RefUnwindSafe for FunctionSignature
impl Send for FunctionSignature
impl Sync for FunctionSignature
impl Unpin for FunctionSignature
impl UnwindSafe for FunctionSignature
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.