pub struct AssumingOperation<'c> { /* private fields */ }
Expand description
An assuming
operation. Execute the region.
Executes the region assuming all witnesses are true.
“assuming” operations represent an execution order restriction to the compiler, information for dependent code to rely on (by assuming), and nothing else. They should not exist after a program is fully lowered and ready to execute.
Implementations§
source§impl<'c> AssumingOperation<'c>
impl<'c> AssumingOperation<'c>
sourcepub fn as_operation(&self) -> &Operation<'c>
pub fn as_operation(&self) -> &Operation<'c>
Returns a generic operation.
sourcepub fn builder(
context: &'c Context,
location: Location<'c>
) -> AssumingOperationBuilder<'c, Unset, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> AssumingOperationBuilder<'c, Unset, Unset, Unset>
Creates a builder.
pub fn results(&self) -> impl Iterator<Item = OperationResult<'c, '_>>
pub fn witness(&self) -> Result<Value<'c, '_>, Error>
pub fn do_region(&self) -> Result<RegionRef<'c, '_>, Error>
Trait Implementations§
source§impl<'c> From<AssumingOperation<'c>> for Operation<'c>
impl<'c> From<AssumingOperation<'c>> for Operation<'c>
source§fn from(operation: AssumingOperation<'c>) -> Self
fn from(operation: AssumingOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for AssumingOperation<'c>
impl<'c> !Send for AssumingOperation<'c>
impl<'c> !Sync for AssumingOperation<'c>
impl<'c> Unpin for AssumingOperation<'c>
impl<'c> UnwindSafe for AssumingOperation<'c>
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