objc2-foundation 0.3.0

Bindings to the Foundation framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use core::fmt;
use core::panic::{RefUnwindSafe, UnwindSafe};

use crate::NSProcessInfo;

impl UnwindSafe for NSProcessInfo {}
impl RefUnwindSafe for NSProcessInfo {}

impl fmt::Debug for NSProcessInfo {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        let mut debug = f.debug_struct("NSProcessInfo");

        #[cfg(feature = "NSString")]
        debug.field("processName", &self.processName());

        debug.finish_non_exhaustive()
    }
}