pub struct SemanticTransformContext<'a> { /* private fields */ }Expand description
Validation-preserving destination transaction exposed to transforms.
Implementations§
Source§impl SemanticTransformContext<'_>
impl SemanticTransformContext<'_>
Sourcepub fn import_program(
&mut self,
input: &FrozenProgram,
roots: &[ProgramValue],
) -> Result<ImportedProgramValues, SemanticTransformError>
pub fn import_program( &mut self, input: &FrozenProgram, roots: &[ProgramValue], ) -> Result<ImportedProgramValues, SemanticTransformError>
Import source structure, bindings, and ordered roots atomically.
§Errors
Returns SemanticTransformError::Build when the underlying
SemanticProgramBuilder rejects
foreign roots/bindings, invalid structure, or an unrepresentable value
count.
Sourcepub fn builder(&mut self) -> &mut SemanticProgramBuilder
pub fn builder(&mut self) -> &mut SemanticProgramBuilder
Borrow the destination builder for validated semantic additions.
Auto Trait Implementations§
impl<'a> Freeze for SemanticTransformContext<'a>
impl<'a> !RefUnwindSafe for SemanticTransformContext<'a>
impl<'a> Send for SemanticTransformContext<'a>
impl<'a> Sync for SemanticTransformContext<'a>
impl<'a> Unpin for SemanticTransformContext<'a>
impl<'a> UnsafeUnpin for SemanticTransformContext<'a>
impl<'a> !UnwindSafe for SemanticTransformContext<'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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more