objc2-foundation 0.3.2

Bindings to the Foundation framework
Documentation
1
2
3
4
5
6
7
8
9
#![cfg(all(feature = "NSMeasurement", feature = "NSUnit"))]

use crate::{NSMeasurement, NSUnitMass, NSUnitPower};

#[test]
fn create() {
    let mass = unsafe { NSMeasurement::<NSUnitMass>::new() };
    let _power = unsafe { mass.cast_unchecked::<NSUnitPower>() };
}