cidre 0.11.4

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::{define_obj_type, ns, objc};

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

impl Allocation {
    #[objc::msg_send(allocatedSize)]
    #[objc::available(
        macos = 15.0,
        ios = 18.0,
        maccatalyst = 18.0,
        tvos = 18.0,
        visionos = 2.0
    )]
    pub fn allocated_size(&self) -> usize;
}