pub struct MergeHandlesOperation<'c> { /* private fields */ }
Expand description
A merge_handles
operation. Merges handles into one pointing to the union of payload ops.
Creates a new Transform IR handle value that points to the same Payload IR
operations/values/parameters as the operand handles. The Payload IR elements
are listed in the same order as they are in the operand handles, grouped by
operand handle, e.g., all Payload IR associated with the first handle comes
first, then all Payload IR associated with the second handle and so on. If
deduplicate
is set, do not add the given Payload IR operation, value, or
parameter more than once to the final list regardless of it coming from the
same or different handles. Consumes the operands and produces a new handle.
Implementations§
source§impl<'c> MergeHandlesOperation<'c>
impl<'c> MergeHandlesOperation<'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>
) -> MergeHandlesOperationBuilder<'c, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> MergeHandlesOperationBuilder<'c, Unset>
Creates a builder.
pub fn result(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn handles(&self) -> impl Iterator<Item = Value<'c, '_>>
pub fn deduplicate(&self) -> Result<Attribute<'c>, Error>
pub fn set_deduplicate(&mut self, value: Attribute<'c>)
pub fn remove_deduplicate(&mut self) -> Result<(), Error>
Trait Implementations§
source§impl<'c> From<MergeHandlesOperation<'c>> for Operation<'c>
impl<'c> From<MergeHandlesOperation<'c>> for Operation<'c>
source§fn from(operation: MergeHandlesOperation<'c>) -> Self
fn from(operation: MergeHandlesOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for MergeHandlesOperation<'c>
impl<'c> !Send for MergeHandlesOperation<'c>
impl<'c> !Sync for MergeHandlesOperation<'c>
impl<'c> Unpin for MergeHandlesOperation<'c>
impl<'c> UnwindSafe for MergeHandlesOperation<'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