Struct ezno_checker::context::environment::Syntax
source · pub struct Syntax<'a> {
pub scope: Scope,
pub free_variables: HashSet<RootReference>,
pub closed_over_references: ClosedOverReferencesInScope,
pub location: ContextLocation,
/* private fields */
}Fields§
§scope: Scope§free_variables: HashSet<RootReference>Variables that this context pulls in from above (across a dynamic context). aka not from parameters of bound this
Not to be confused with closed_over_references
closed_over_references: ClosedOverReferencesInScopeVariables used in this scope which are closed over by functions. These need to be stored
Not to be confused with used_parent_references
location: ContextLocationTODO WIP! server, client, worker etc
Trait Implementations§
source§impl<'a> ContextType for Syntax<'a>
impl<'a> ContextType for Syntax<'a>
fn as_general_context(et: &Context<Self>) -> GeneralContext<'_>
fn get_parent(&self) -> Option<&GeneralContext<'_>>
source§fn is_dynamic_boundary(&self) -> bool
fn is_dynamic_boundary(&self) -> bool
Variables above this scope may change between runs
source§fn is_conditional(&self) -> bool
fn is_conditional(&self) -> bool
Branch might not be run
fn get_closed_over_references( &mut self ) -> Option<&mut ClosedOverReferencesInScope>
fn get_exports(&mut self) -> Option<&mut Exported>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Syntax<'a>
impl<'a> Send for Syntax<'a>
impl<'a> Sync for Syntax<'a>
impl<'a> Unpin for Syntax<'a>
impl<'a> UnwindSafe for Syntax<'a>
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