Struct leo_ast::program::program_scope::ProgramScope
source · pub struct ProgramScope {
pub program_id: ProgramId,
pub structs: IndexMap<Symbol, Struct>,
pub mappings: IndexMap<Symbol, Mapping>,
pub functions: IndexMap<Symbol, Function>,
pub span: Span,
}Expand description
Stores the Leo program scope abstract syntax tree.
Fields§
§program_id: ProgramIdThe program id of the program scope.
structs: IndexMap<Symbol, Struct>A map from struct names to struct definitions.
mappings: IndexMap<Symbol, Mapping>A map from mapping names to mapping definitions.
functions: IndexMap<Symbol, Function>A map from function names to function definitions.
span: SpanThe span associated with the program scope.
Trait Implementations§
source§impl Clone for ProgramScope
impl Clone for ProgramScope
source§fn clone(&self) -> ProgramScope
fn clone(&self) -> ProgramScope
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for ProgramScope
impl Debug for ProgramScope
source§impl<'de> Deserialize<'de> for ProgramScope
impl<'de> Deserialize<'de> for ProgramScope
source§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
source§impl Display for ProgramScope
impl Display for ProgramScope
source§impl PartialEq<ProgramScope> for ProgramScope
impl PartialEq<ProgramScope> for ProgramScope
source§fn eq(&self, other: &ProgramScope) -> bool
fn eq(&self, other: &ProgramScope) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for ProgramScope
impl Serialize for ProgramScope
impl Eq for ProgramScope
impl StructuralEq for ProgramScope
impl StructuralPartialEq for ProgramScope
Auto Trait Implementations§
impl !RefUnwindSafe for ProgramScope
impl Send for ProgramScope
impl !Sync for ProgramScope
impl Unpin for ProgramScope
impl UnwindSafe for ProgramScope
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.