pub struct MulOperation<'c> { /* private fields */ }
Expand description
A mul
operation. Multiplication of sizes and indices.
Multiplies two sizes or indices. If either operand is an error it will be
propagated to the result. The operands can be of type size
or index
. If
at least one of the operands can hold an error, i.e. if it is of type
size
, the result must be of type size
. If error propagation is not
possible because both operands are of type index
then the result may be
of type size
or index
.
Implementations§
source§impl<'c> MulOperation<'c>
impl<'c> MulOperation<'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>
) -> MulOperationBuilder<'c, Unset, Unset>
pub fn builder( context: &'c Context, location: Location<'c> ) -> MulOperationBuilder<'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<MulOperation<'c>> for Operation<'c>
impl<'c> From<MulOperation<'c>> for Operation<'c>
source§fn from(operation: MulOperation<'c>) -> Self
fn from(operation: MulOperation<'c>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'c> RefUnwindSafe for MulOperation<'c>
impl<'c> !Send for MulOperation<'c>
impl<'c> !Sync for MulOperation<'c>
impl<'c> Unpin for MulOperation<'c>
impl<'c> UnwindSafe for MulOperation<'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