cidre 0.16.0

Apple frameworks bindings for rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::{arc, define_obj_type, ml, ns, objc};

define_obj_type!(
    #[doc(alias = "MLMultiArrayConstraint")]
    pub MultiArrayConstraint(ns::Id)
);

impl MultiArrayConstraint {
    #[objc::msg_send(shape)]
    pub fn shape(&self) -> arc::R<ns::Array<ns::Number>>;

    #[objc::msg_send(dataType)]
    pub fn data_type(&self) -> ml::MultiArrayDType;

    #[objc::available(macos = 10.14, ios = 12.0, watchos = 5.0, tvos = 12.0)]
    #[objc::msg_send(shapeConstraint)]
    pub fn shape_constraint(&self) -> arc::R<ml::MultiArrayShapeConstraint>;
}