sway_core/language/ty/declaration/
mod.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
mod abi;
mod configurable;
mod constant;
#[allow(clippy::module_inception)]
mod declaration;
mod r#enum;
mod function;
mod impl_trait;
mod storage;
mod r#struct;
mod r#trait;
mod trait_fn;
mod trait_type;
mod type_alias;
mod variable;

pub use abi::*;
pub use configurable::*;
pub use constant::*;
pub use declaration::*;
pub use function::*;
pub use impl_trait::*;
pub use r#enum::*;
pub use r#struct::*;
pub use r#trait::*;
pub use storage::*;
pub use trait_fn::*;
pub use trait_type::*;
pub use type_alias::*;
pub use variable::*;

use crate::TypeArgument;

pub trait FunctionSignature {
    fn parameters(&self) -> &Vec<TyFunctionParameter>;
    fn return_type(&self) -> &TypeArgument;
}