pub struct AddToGroupOperation<'c> { /* private fields */ }
Expand description
An add_to_group
operation. Adds and async token or value to the group.
The async.add_to_group
adds an async token or value to the async group.
Returns the rank of the added element in the group. This rank is fixed
for the group lifetime.
Example:
%0 = async.create_group %size : !async.group
%1 = ... : !async.token
%2 = async.add_to_group %1, %0 : !async.token
Implementations§
source§impl<'c> AddToGroupOperation<'c>
impl<'c> AddToGroupOperation<'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>
) -> AddToGroupOperationBuilder<'c, Unset, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> AddToGroupOperationBuilder<'c, Unset, Unset, Unset>
Creates a builder.
pub fn rank(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn operand(&self) -> Result<Value<'c, '_>, Error>
pub fn group(&self) -> Result<Value<'c, '_>, Error>
Trait Implementations§
source§impl<'c> From<AddToGroupOperation<'c>> for Operation<'c>
impl<'c> From<AddToGroupOperation<'c>> for Operation<'c>
source§fn from(operation: AddToGroupOperation<'c>) -> Self
fn from(operation: AddToGroupOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for AddToGroupOperation<'c>
impl<'c> !Send for AddToGroupOperation<'c>
impl<'c> !Sync for AddToGroupOperation<'c>
impl<'c> Unpin for AddToGroupOperation<'c>
impl<'c> UnwindSafe for AddToGroupOperation<'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