pub struct CodegenCtx<'a> {
pub ta: &'a TypedAst,
pub strings: &'a StringPool,
pub bigints: &'a BigIntPool,
pub symbols: &'a SymbolTable,
pub source: &'a str,
pub line_index: &'a LineIndex,
pub file: FileId,
pub validator_bodies: &'a ValidatorBodies,
pub type_info: &'a TypeInfoTable,
pub package_string_global_idx: Option<u32>,
/* private fields */
}Fields§
§ta: &'a TypedAst§strings: &'a StringPool§bigints: &'a BigIntPool§symbols: &'a SymbolTable§source: &'a str§line_index: &'a LineIndex§file: FileIdThe module being compiled; codegen-generated nodes (closure envs, adapter params, runtime validators) anchor their placeholder spans to it.
validator_bodies: &'a ValidatorBodiesRuntime-validator bodies for expanding recursive aliases and data interfaces.
type_info: &'a TypeInfoTable§package_string_global_idx: Option<u32>Auto Trait Implementations§
impl<'a> !Freeze for CodegenCtx<'a>
impl<'a> !RefUnwindSafe for CodegenCtx<'a>
impl<'a> !Send for CodegenCtx<'a>
impl<'a> !Sync for CodegenCtx<'a>
impl<'a> !UnwindSafe for CodegenCtx<'a>
impl<'a> Unpin for CodegenCtx<'a>
impl<'a> UnsafeUnpin for CodegenCtx<'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