pub struct ExtendedCompilerContext {
pub base_context: CompilerContext,
pub custom_ops: Arc<CustomOpRegistry>,
pub custom_data: CustomOpData,
}Expand description
Extended compiler context with custom operations.
Fields§
§base_context: CompilerContextBase compiler context
custom_ops: Arc<CustomOpRegistry>Custom operation registry
custom_data: CustomOpDataCustom operation data
Implementations§
Source§impl ExtendedCompilerContext
impl ExtendedCompilerContext
Sourcepub fn from_context(ctx: CompilerContext) -> Self
pub fn from_context(ctx: CompilerContext) -> Self
Create from existing context.
Sourcepub fn with_config(self, config: CompilationConfig) -> Self
pub fn with_config(self, config: CompilationConfig) -> Self
Set compilation config.
Sourcepub fn with_custom_data(self, data: CustomOpData) -> Self
pub fn with_custom_data(self, data: CustomOpData) -> Self
Set custom data.
Sourcepub fn custom_ops_mut(&mut self) -> &mut CustomOpRegistry
pub fn custom_ops_mut(&mut self) -> &mut CustomOpRegistry
Get mutable access to custom operation registry.
Trait Implementations§
Source§impl Clone for ExtendedCompilerContext
impl Clone for ExtendedCompilerContext
Source§fn clone(&self) -> ExtendedCompilerContext
fn clone(&self) -> ExtendedCompilerContext
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for ExtendedCompilerContext
impl RefUnwindSafe for ExtendedCompilerContext
impl Send for ExtendedCompilerContext
impl Sync for ExtendedCompilerContext
impl Unpin for ExtendedCompilerContext
impl UnwindSafe for ExtendedCompilerContext
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