Struct DivExpression
Source pub struct DivExpression<L, R> {
pub numerator: L,
pub denominator: R,
}
Expand description
An expression representing deferred division.
Evaluations are deferred to preserve precision, scaling only when converted
to a target resolution or assigned to a Fixed variable.
The numerator of the division expression.
The denominator of the division expression.
Evaluates the deferred division into a FastFixed value of the target format.
§Panics
Panics if the denominator is zero.
Converts to this type from the input type.
Converts to this type from the input type.
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
[From]<T> for U chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.