fruity 0.3.0

Rusty bindings for Apple libraries
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::{Class, ObjectType};

/// A type that represents an instance of a specific Objective-C class.
///
/// # Related Items
///
/// - [`objc::ObjectType`](crate::objc::ObjectType)
pub trait ClassType<'data>: ObjectType<'data> {
    /// Returns the Objective-C class that can be used to instantiate a new
    /// instance of `Self`.
    ///
    /// If the class is not available at runtime, a link error will occur during
    /// program launch.
    fn class() -> &'static Class;
}