Trait NSDecimalNumberBehaviors

Source
pub unsafe trait NSDecimalNumberBehaviors {
    // Provided methods
    unsafe fn roundingMode(&self) -> NSRoundingMode
       where Self: Sized + Message { ... }
    unsafe 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§

Source

unsafe fn roundingMode(&self) -> NSRoundingMode
where Self: Sized + Message,

Available on crate feature NSDecimal only.
Source

unsafe fn scale(&self) -> c_short
where Self: Sized + Message,

Source

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 features NSDecimal and NSValue only.

Trait Implementations§

Source§

impl ProtocolType for dyn NSDecimalNumberBehaviors

Source§

const NAME: &'static str = "NSDecimalNumberBehaviors"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn NSDecimalNumberBehaviors

Implementations on Foreign Types§

Source§

impl<T> NSDecimalNumberBehaviors for ProtocolObject<T>

Implementors§