pub struct ErrorDomain(/* private fields */);Implementations§
Source§impl ErrorDomain
impl ErrorDomain
Source§impl ErrorDomain
impl ErrorDomain
pub fn multipeer_connectivity() -> &'static Self
Source§impl ErrorDomain
impl ErrorDomain
pub fn texture_loader() -> &'static Self
Source§impl ErrorDomain
impl ErrorDomain
Sourcepub fn screen_capture() -> &'static Self
pub fn screen_capture() -> &'static Self
§Availability
macos_12_3, ios_27_0, tvos_27_0, visionos_27_0, maccatalyst_18_2
Source§impl ErrorDomain
impl ErrorDomain
pub fn sound_analysis() -> &'static Self
Source§impl ErrorDomain
impl ErrorDomain
pub fn user_notifications() -> &'static Self
Source§impl ErrorDomain
impl ErrorDomain
Methods from Deref<Target = String>§
pub fn retained(&self) -> R<Self>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn lowercased_ar(&self) -> Rar<Self>
pub fn lowercased(&self) -> R<Self>
pub fn to_i32(&self) -> i32
pub fn to_i64(&self) -> i64
pub fn to_f32(&self) -> f32
pub fn to_f64(&self) -> f64
pub fn to_bool(&self) -> bool
Sourcepub fn to_integer(&self) -> Integer
pub fn to_integer(&self) -> Integer
The ns::Integer value of the string.
The ns::Integer value of the string, assuming a decimal representation and skipping whitespace at the beginning of the string. This property is 0 if the string doesn’t begin with a valid decimal text representation of a number. This property uses formatting information stored in the non-localized value; use an ns::Scanner object for localized scanning of numeric values from a string.
pub fn copy_mut(&self) -> Retained<StringMut>
Sourcepub unsafe fn substring_with_range_throws_ar(&self, range: Range) -> Rar<Self>
pub unsafe fn substring_with_range_throws_ar(&self, range: Range) -> Rar<Self>
Returns a substring for range.
§Safety
Throws an Objective-C exception if range is outside the string bounds.
Sourcepub unsafe fn substring_with_range_throws(&self, range: Range) -> R<Self>
pub unsafe fn substring_with_range_throws(&self, range: Range) -> R<Self>
Returns a substring for range.
§Safety
Throws an Objective-C exception if range is outside the string bounds.
pub fn substring_with_range<'ear>( &self, range: Range, ) -> ExResult<'ear, R<Self>>
pub fn substring<'ear>(&self, range: Range<usize>) -> ExResult<'ear, R<String>>
pub fn c_string(&self, encoding: Encoding) -> *const i8
pub fn len_of_bytes(&self, encoding: Encoding) -> UInteger
pub unsafe fn utf8_chars_ar(&self) -> *const i8
pub fn as_cf(&self) -> &String
pub fn eq_ns_string(&self, other: &Self) -> bool
pub fn to_selector(&self) -> Option<&'static Sel>
pub fn to_class(&self) -> Option<&'static Class<Id>>
pub fn hash(&self) -> UInteger
pub fn path_components_ar(&self) -> Rar<Array<String>>
pub fn path_components(&self) -> R<Array<String>>
pub fn is_abs_path(&self) -> bool
pub fn last_path_component_ar(&self) -> Rar<String>
pub fn last_path_component(&self) -> R<String>
pub fn string_by_deleting_last_path_component_ar(&self) -> Rar<String>
pub fn string_by_deleting_last_path_component(&self) -> R<String>
pub fn string_by_appending_path_component_ar(&self, str: &String) -> Rar<String>
pub fn string_by_appending_path_component(&self, str: &String) -> R<String>
pub fn path_extension_ar(&self) -> Rar<String>
pub fn path_extension(&self) -> R<String>
pub fn string_by_deleting_path_extension_ar(&self) -> Rar<String>
pub fn string_by_deleting_path_extension(&self) -> R<String>
pub fn string_by_appending_path_extension_ar(&self, str: &String) -> Rar<String>
pub fn string_by_appending_path_extension(&self, str: &String) -> R<String>
pub fn string_by_abbreviating_with_tilde_in_path_ar(&self) -> Rar<String>
pub fn string_by_abbreviating_with_tilde_in_path(&self) -> R<String>
pub fn string_by_expanding_tilde_in_path_ar(&self) -> Rar<String>
pub fn string_by_expanding_tilde_in_path(&self) -> R<String>
Methods from Deref<Target = Id>§
pub unsafe fn value_for_key_throws_ar(&self, key: &String) -> Option<Rar<Self>>
pub unsafe fn value_for_key_throws(&self, key: &String) -> Option<R<Self>>
pub fn value_for_key<'ear>( &self, key: &String, ) -> ExResult<'ear, Option<R<Self>>>
pub unsafe fn set_value_for_key_throws( &mut self, val: Option<&Self>, key: &String, )
pub fn set_value_for_key<'ear>( &mut self, val: Option<&Self>, key: &String, ) -> ExResult<'ear>
pub unsafe fn value_for_key_path_throws_ar( &self, key_path: &String, ) -> Option<Rar<Self>>
pub unsafe fn value_for_key_path_throws( &self, key_path: &String, ) -> Option<R<Self>>
pub fn value_for_key_path<'ear>( &self, key_path: &String, ) -> ExResult<'ear, Option<R<Self>>>
pub unsafe fn set_value_for_key_path_throws( &mut self, val: Option<&Self>, key_path: &String, )
pub fn set_value_for_key_path<'ear>( &mut self, val: Option<&Self>, key_path: &String, ) -> ExResult<'ear>
pub fn as_type_ref(&self) -> &Type
pub fn as_id_ref(&self) -> &Self
pub fn is_equal(&self, other: &Self) -> bool
pub fn hash(&self) -> UInteger
pub fn as_ptr(&self) -> *const Self
Trait Implementations§
Source§impl Obj for Domain
impl Obj for Domain
unsafe fn retain(id: &Self) -> R<Self>
unsafe fn release(id: &mut Self)
fn desc_ar(&self) -> Rar<String>
fn desc(&self) -> R<String>
fn debug_desc_ar(&self) -> Rar<String>
fn debug_desc(&self) -> R<String>
fn responds_to_sel(&self, sel: &Sel) -> bool
fn class(&self) -> &Class<Self>
fn is_kind_of_class<T: Obj>(&self, cls: &Class<T>) -> bool
fn try_cast<T: Obj>(&self, cls: &Class<T>) -> Option<&T>
fn try_cast_mut<T: Obj>(&mut self, cls: &Class<T>) -> Option<&mut T>
fn is_member_of_class<T: Obj>(&self, cls: &Class<T>) -> bool
fn is_tagged_ptr(&self) -> bool
fn as_id_ref(&self) -> &Id
impl StructuralPartialEq for Domain
Auto Trait Implementations§
impl !Sync for Domain
impl Freeze for Domain
impl RefUnwindSafe for Domain
impl Send for Domain
impl Unpin for Domain
impl UnsafeUnpin for Domain
impl UnwindSafe for Domain
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more