Struct move_ir_types::ast::FunctionSignature
source · [−]pub struct FunctionSignature {
pub formals: Vec<(Var, Type)>,
pub return_type: Vec<Type>,
pub type_formals: Vec<(TypeVar, BTreeSet<Ability>)>,
}Expand description
The signature of a function
Fields
formals: Vec<(Var, Type)>Possibly-empty list of (formal name, formal type) pairs. Names are unique.
return_type: Vec<Type>Optional return types
type_formals: Vec<(TypeVar, BTreeSet<Ability>)>Possibly-empty list of type parameters and their constraints
Implementations
Trait Implementations
sourceimpl Clone for FunctionSignature
impl Clone for FunctionSignature
sourcefn clone(&self) -> FunctionSignature
fn clone(&self) -> FunctionSignature
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for FunctionSignature
impl Debug for FunctionSignature
sourceimpl Display for FunctionSignature
impl Display for FunctionSignature
sourceimpl PartialEq<FunctionSignature> for FunctionSignature
impl PartialEq<FunctionSignature> for FunctionSignature
sourcefn 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 ==. Read more
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more