pub struct AbsIOperation<'c> { /* private fields */ }
Expand description
An absi
operation. Integer absolute-value operation.
The absi
operation computes the absolute value. It takes one operand of
integer type (i.e., scalar, tensor or vector) and returns one result of the
same type.
Example:
// Scalar absolute value.
%a = math.absi %b : i64
Implementations§
source§impl<'c> AbsIOperation<'c>
impl<'c> AbsIOperation<'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>
) -> AbsIOperationBuilder<'c, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> AbsIOperationBuilder<'c, Unset>
Creates a builder.
pub fn result(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn operand(&self) -> Result<Value<'c, '_>, Error>
Trait Implementations§
source§impl<'c> From<AbsIOperation<'c>> for Operation<'c>
impl<'c> From<AbsIOperation<'c>> for Operation<'c>
source§fn from(operation: AbsIOperation<'c>) -> Self
fn from(operation: AbsIOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for AbsIOperation<'c>
impl<'c> !Send for AbsIOperation<'c>
impl<'c> !Sync for AbsIOperation<'c>
impl<'c> Unpin for AbsIOperation<'c>
impl<'c> UnwindSafe for AbsIOperation<'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