Struct sway_core::parse_tree::declaration::function::FunctionDeclaration
source · [−]pub struct FunctionDeclaration {
pub purity: Purity,
pub name: Ident,
pub visibility: Visibility,
pub body: CodeBlock,
pub span: Span,
/* private fields */
}
Fields
purity: Purity
name: Ident
visibility: Visibility
body: CodeBlock
span: Span
Implementations
pub fn parse_from_pair(
pair: Pair<Rule>,
config: Option<&BuildConfig>
) -> CompileResult<Self>
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FunctionDeclaration
impl Send for FunctionDeclaration
impl Sync for FunctionDeclaration
impl Unpin for FunctionDeclaration
impl UnwindSafe for FunctionDeclaration
Blanket Implementations
Mutably borrows from an owned value. Read more