Struct leo_ast::functions::function::Function [−][src]
pub struct Function { pub annotations: Vec<Annotation>, pub identifier: Identifier, pub input: Vec<FunctionInput>, pub output: Option<Type>, pub block: Block, pub span: Span, }
Fields
annotations: Vec<Annotation>
identifier: Identifier
input: Vec<FunctionInput>
output: Option<Type>
block: Block
span: Span
Implementations
Returns true
if the function has input self
or mut self
.
Returns false
otherwise.
Returns true
if the function has input mut self
.
Returns false
otherwise.
Returns an iterator of [&FunctionInput] removing self
and mut self
inputs.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl !RefUnwindSafe for Function
impl UnwindSafe for Function
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more