pub struct MinOperation<'c> { /* private fields */ }
Expand description
A min
operation. Elementwise minimum.
Computes the elementwise minimum of two sizes or shapes with equal ranks. If either operand is an error, then an error will be propagated to the result. If the input types mismatch or the ranks do not match, then the result is an error.
Implementations§
source§impl<'c> MinOperation<'c>
impl<'c> MinOperation<'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>
) -> MinOperationBuilder<'c, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> MinOperationBuilder<'c, Unset, Unset>
Creates a builder.
pub fn result(&self) -> Result<OperationResult<'c, '_>, Error>
pub fn lhs(&self) -> Result<Value<'c, '_>, Error>
pub fn rhs(&self) -> Result<Value<'c, '_>, Error>
Trait Implementations§
source§impl<'c> From<MinOperation<'c>> for Operation<'c>
impl<'c> From<MinOperation<'c>> for Operation<'c>
source§fn from(operation: MinOperation<'c>) -> Self
fn from(operation: MinOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for MinOperation<'c>
impl<'c> !Send for MinOperation<'c>
impl<'c> !Sync for MinOperation<'c>
impl<'c> Unpin for MinOperation<'c>
impl<'c> UnwindSafe for MinOperation<'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