pub struct ParamConstantOperation<'c> { /* private fields */ }
Expand description
A param.constant
operation. Produces a new transform dialect parameter value associated with the given attribute.
Produces a new transform dialect parameter associated with the singleton list containing the given attribute. The operation itself always succeeds, but the general association check may fail if the parameter type does not accept the given kind of attribute as valid.
Implementations§
source§impl<'c> ParamConstantOperation<'c>
impl<'c> ParamConstantOperation<'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>
) -> ParamConstantOperationBuilder<'c, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> ParamConstantOperationBuilder<'c, Unset, Unset>
Creates a builder.
pub fn param(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn value(&self) -> Result<Attribute<'c>, Error>
pub fn set_value(&mut self, value: Attribute<'c>)
Trait Implementations§
source§impl<'c> From<ParamConstantOperation<'c>> for Operation<'c>
impl<'c> From<ParamConstantOperation<'c>> for Operation<'c>
source§fn from(operation: ParamConstantOperation<'c>) -> Self
fn from(operation: ParamConstantOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for ParamConstantOperation<'c>
impl<'c> !Send for ParamConstantOperation<'c>
impl<'c> !Sync for ParamConstantOperation<'c>
impl<'c> Unpin for ParamConstantOperation<'c>
impl<'c> UnwindSafe for ParamConstantOperation<'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