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: u32name: 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: FunctionQualifierannotations: Vec<Annotation>

Implementations

impl<'a> Function<'a>[src]

pub fn is_test(&self) -> bool[src]

Trait Implementations

impl<'a> Clone for Function<'a>[src]

impl<'a> Eq for Function<'a>[src]

impl<'a> Into<Function> for &Function<'a>[src]

impl<'a> PartialEq<Function<'a>> for Function<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Function<'a>

impl<'a> !Send for Function<'a>

impl<'a> !Sync for Function<'a>

impl<'a> Unpin for Function<'a>

impl<'a> !UnwindSafe for Function<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.