//! Various common #defines and enum constants. #![allow(non_camel_case_types)]
#[cfg(any(doc, target_vendor = "apple"))] use core::ffi::c_int;
usecrate::runtime::{AnyClass, AnyObject};
/// A quick alias for a [`null_mut`][`core::ptr::null_mut`] object / instance. pubconst nil: *mut AnyObject = 0as *mut _;
/// A quick alias for a [`null_mut`][`core::ptr::null_mut`] class. pubconst Nil: *mut AnyClass = 0as *mut _;
/// Policies related to associative references. /// /// These are options to [`objc_setAssociatedObject`]. /// /// [`objc_setAssociatedObject`]: crate::ffi::objc_setAssociatedObject pubtype objc_AssociationPolicy = usize; /// Specifies a weak reference to the associated object. /// /// This performs straight assignment, without message sends. pubconst OBJC_ASSOCIATION_ASSIGN: objc_AssociationPolicy = 0; /// Specifies a strong reference to the associated object. /// /// The association is not made atomically. pubconst OBJC_ASSOCIATION_RETAIN_NONATOMIC: objc_AssociationPolicy = 1; /// Specifies that the associated object is copied. /// /// The association is not made atomically. pubconst OBJC_ASSOCIATION_COPY_NONATOMIC: objc_AssociationPolicy = 3; /// Specifies a strong reference to the associated object. /// /// The association is made atomically. pubconst OBJC_ASSOCIATION_RETAIN: objc_AssociationPolicy = 0o1401; /// Specifies that the associated object is copied. /// /// The association is made atomically. pubconst OBJC_ASSOCIATION_COPY: objc_AssociationPolicy = 0o1403;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.