Trait objc2_foundation::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.

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.
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§