pub struct ApplyNativeConstraintOperation<'c> { /* private fields */ }
Expand description
An apply_native_constraint
operation. Apply a native constraint to a set of provided entities.
pdl.apply_native_constraint
operations apply a native C++ constraint, that
has been registered externally with the consumer of PDL, to a given set of
entities.
Example:
// Apply `myConstraint` to the entities defined by `input`, `attr`, and `op`.
pdl.apply_native_constraint "myConstraint"(%input, %attr, %op : !pdl.value, !pdl.attribute, !pdl.operation)
Implementations§
source§impl<'c> ApplyNativeConstraintOperation<'c>
impl<'c> ApplyNativeConstraintOperation<'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>
) -> ApplyNativeConstraintOperationBuilder<'c, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> ApplyNativeConstraintOperationBuilder<'c, Unset, Unset>
Creates a builder.
pub fn args(&self) -> impl Iterator<Item = Value<'c, '_>>
pub fn _name(&self) -> Result<StringAttribute<'c>, Error>
pub fn set_name(&mut self, value: StringAttribute<'c>)
Trait Implementations§
source§impl<'c> From<ApplyNativeConstraintOperation<'c>> for Operation<'c>
impl<'c> From<ApplyNativeConstraintOperation<'c>> for Operation<'c>
source§fn from(operation: ApplyNativeConstraintOperation<'c>) -> Self
fn from(operation: ApplyNativeConstraintOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for ApplyNativeConstraintOperation<'c>
impl<'c> !Send for ApplyNativeConstraintOperation<'c>
impl<'c> !Sync for ApplyNativeConstraintOperation<'c>
impl<'c> Unpin for ApplyNativeConstraintOperation<'c>
impl<'c> UnwindSafe for ApplyNativeConstraintOperation<'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