pub unsafe trait NSDecimalNumberBehaviors {
// Provided methods
fn roundingMode(&self) -> NSRoundingMode
where Self: Sized + Message { ... }
fn scale(&self) -> c_short
where Self: Sized + Message { ... }
unsafe fn exceptionDuringOperation_error_leftOperand_rightOperand(
&self,
operation: Sel,
error: NSCalculationError,
left_operand: &NSDecimalNumber,
right_operand: Option<&NSDecimalNumber>,
) -> Option<Retained<NSDecimalNumber>>
where Self: Sized + Message { ... }
}Available on crate feature
NSDecimalNumber only.Expand description
Provided Methods§
fn roundingMode(&self) -> NSRoundingMode
Available on crate feature
NSDecimal only.fn scale(&self) -> c_short
Sourceunsafe fn exceptionDuringOperation_error_leftOperand_rightOperand(
&self,
operation: Sel,
error: NSCalculationError,
left_operand: &NSDecimalNumber,
right_operand: Option<&NSDecimalNumber>,
) -> Option<Retained<NSDecimalNumber>>
Available on crate features NSDecimal and NSValue only.
unsafe fn exceptionDuringOperation_error_leftOperand_rightOperand( &self, operation: Sel, error: NSCalculationError, left_operand: &NSDecimalNumber, right_operand: Option<&NSDecimalNumber>, ) -> Option<Retained<NSDecimalNumber>>
NSDecimal and NSValue only.§Safety
operation must be a valid selector.