pub enum ArithmeticOperator {
Add,
Divide,
Multiply,
Subtract,
}Expand description
How an applied value combines its components.
IfcArithmeticOperatorEnum, verified against IFC4 EXPRESS.
Variants§
Implementations§
Source§impl ArithmeticOperator
impl ArithmeticOperator
Sourcepub fn is_order_sensitive(self) -> bool
pub fn is_order_sensitive(self) -> bool
Whether operand order changes the result.
ADD and MULTIPLY are commutative, so folding a component list in
file order is safe. SUBTRACT and DIVIDE are not, and IFC does not
define the bracketing, so a caller folding them is choosing a
convention rather than reading one.
Trait Implementations§
Source§impl Clone for ArithmeticOperator
impl Clone for ArithmeticOperator
impl Copy for ArithmeticOperator
Source§impl Debug for ArithmeticOperator
impl Debug for ArithmeticOperator
impl Eq for ArithmeticOperator
Source§impl PartialEq for ArithmeticOperator
impl PartialEq for ArithmeticOperator
impl StructuralPartialEq for ArithmeticOperator
Auto Trait Implementations§
impl Freeze for ArithmeticOperator
impl RefUnwindSafe for ArithmeticOperator
impl Send for ArithmeticOperator
impl Sync for ArithmeticOperator
impl Unpin for ArithmeticOperator
impl UnsafeUnpin for ArithmeticOperator
impl UnwindSafe for ArithmeticOperator
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