Type Alias ezno_checker::context::RootContext

source ·
pub type RootContext = Context<Root>;

Aliased Type§

struct RootContext {
    pub context_id: ContextId,
    pub possibly_mutated_objects: HashSet<TypeId>,
    pub info: LocalInformation,
    /* private fields */
}

Fields§

§context_id: ContextId§possibly_mutated_objects: HashSet<TypeId>

When a objects TypeId is in here getting a property returns a constructor rather than

§info: LocalInformation

Implementations§

source§

impl RootContext

source

pub fn new_with_primitive_references() -> Self

source

pub fn new_module_context<'a, T: ReadFromFS, A: ASTImplementation>( &self, source: SourceId, module: A::Module<'static>, checking_data: &'a mut CheckingData<'_, T, A> ) -> &'a SynthesisedModule<A::OwnedModule>

source

pub fn serialize(self) -> Vec<u8>

TODO working things out:

  • strings could reference a big string
source

pub fn deserialize( _source: &[u8], _backing_source: SourceId ) -> Result<Self, String>