pub trait NSUserDefaults {
// Required methods
unsafe fn standardUserDefaults() -> Self;
unsafe fn setBool_forKey_(self, value: BOOL, key: id);
unsafe fn bool_forKey_(self, key: id) -> BOOL;
unsafe fn removeObject_forKey_(self, key: id);
}
๐Deprecated: use the objc2-foundation crate instead
Required Methodsยง
unsafe fn standardUserDefaults() -> Self
๐Deprecated: use the objc2-foundation crate instead
unsafe fn setBool_forKey_(self, value: BOOL, key: id)
๐Deprecated: use the objc2-foundation crate instead
unsafe fn bool_forKey_(self, key: id) -> BOOL
๐Deprecated: use the objc2-foundation crate instead
unsafe fn removeObject_forKey_(self, key: id)
๐Deprecated: use the objc2-foundation crate instead
Dyn Compatibilityยง
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.