Struct melior::dialect::ods::pdl_interp::GetUsersOperation
source · pub struct GetUsersOperation<'c> { /* private fields */ }
Expand description
A get_users
operation. Get the users of a Value
.
pdl_interp.get_users
extracts the users that accept this value. In the
case of a range, the union of users of the all the values are returned,
similarly to ResultRange::getUsers.
Example:
// Get all the users of a single value.
%ops = pdl_interp.get_users of %value : !pdl.value
// Get all the users of the first value in a range.
%ops = pdl_interp.get_users of %values : !pdl.range<value>
Implementations§
source§impl<'c> GetUsersOperation<'c>
impl<'c> GetUsersOperation<'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>
) -> GetUsersOperationBuilder<'c, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> GetUsersOperationBuilder<'c, Unset, Unset>
Creates a builder.
pub fn operations(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn value(&self) -> Result<Value<'c, '_>, Error>
Trait Implementations§
source§impl<'c> From<GetUsersOperation<'c>> for Operation<'c>
impl<'c> From<GetUsersOperation<'c>> for Operation<'c>
source§fn from(operation: GetUsersOperation<'c>) -> Self
fn from(operation: GetUsersOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for GetUsersOperation<'c>
impl<'c> !Send for GetUsersOperation<'c>
impl<'c> !Sync for GetUsersOperation<'c>
impl<'c> Unpin for GetUsersOperation<'c>
impl<'c> UnwindSafe for GetUsersOperation<'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