MCPcopy Create free account
hub / github.com/ControlCplusControlV/Scribe / ExprFunctionDefinition

Class ExprFunctionDefinition

crates/papyrus/src/types.rs:145–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

143//Ex. function f(a:u256, b:u256) -> c:u256, d:u256 { }
144#[derive(Clone, PartialEq, Eq, Debug)]
145pub struct ExprFunctionDefinition {
146 pub function_name: String,
147 pub params: Vec<TypedIdentifier>,
148 pub returns: Vec<TypedIdentifier>,
149 pub block: ExprBlock,
150}
151
152//Struct to represent a block, consisting of a Vec of expressions
153#[derive(Clone, PartialEq, Eq, Debug)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected