Struct leo_asg::program::Function [−][src]
pub struct Function<'a> { pub id: u32, pub name: RefCell<Identifier>, pub output: Type<'a>, pub arguments: IndexMap<String, Cell<&'a Variable<'a>>>, pub circuit: Cell<Option<&'a Circuit<'a>>>, pub span: Option<Span>, pub body: Cell<Option<&'a Statement<'a>>>, pub scope: &'a Scope<'a>, pub qualifier: FunctionQualifier, pub annotations: Vec<Annotation>, }
Fields
id: u32
name: RefCell<Identifier>
output: Type<'a>
arguments: IndexMap<String, Cell<&'a Variable<'a>>>
circuit: Cell<Option<&'a Circuit<'a>>>
span: Option<Span>
body: Cell<Option<&'a Statement<'a>>>
scope: &'a Scope<'a>
qualifier: FunctionQualifier
annotations: Vec<Annotation>
Implementations
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Function<'a>
impl<'a> !UnwindSafe for Function<'a>
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