Skip to main content

Type

Struct Type 

Source
pub struct Type(/* private fields */);

Implementations§

Source§

impl Type

Source

pub fn retained(&self) -> R<Self>

Source§

impl Type

Source

pub fn human_body() -> &'static Type

Source

pub fn human_full_body() -> &'static Type

Source

pub fn cat_body() -> &'static Type

Source

pub fn dog_body() -> &'static Type

Source

pub fn salient_object() -> &'static Type

Source

pub fn face() -> &'static Type

Source

pub fn upc_e_code() -> &'static Type

objects generated from UPC-E codes return this constant as their type.

Source

pub fn code_39_code() -> &'static Type

objects generated from Code 39 codes return this constant as their type.

Source

pub fn code_39_mod_43_code() -> &'static Type

objects generated from Code 39 mod 43 codes return this constant as their type.

Source

pub fn ean_13_code() -> &'static Type

objects generated from EAN-13 (including UPC-A) codes return this constant as their type.

Source

pub fn ean_8_code() -> &'static Type

objects generated from EAN-8 codes return this constant as their type.

Source

pub fn code_93_code() -> &'static Type

objects generated from Code 93 codes return this constant as their type.

Source

pub fn code_128_code() -> &'static Type

objects generated from Code 128 codes return this constant as their type.

Source

pub fn pdf_417_code() -> &'static Type

objects generated from PDF417 codes return this constant as their type

Source

pub fn qr_code() -> &'static Type

objects generated from QR codes return this constant as their type.

Source

pub fn aztec_code() -> &'static Type

objects generated from Aztec codes return this constant as their type.

Source

pub fn interleaved_2_to_5_code() -> &'static Type

objects generated from Interleaved 2 of 5 codes return this constant as their type.

Source

pub fn itf_14_code() -> &'static Type

objects generated from ITF14 codes return this constant as their type.

Source

pub fn data_matrix_code() -> &'static Type

objects generated from DataMatrix codes return this constant as their type.

Source

pub fn codebar_code() -> &'static Type

objects generated from Codabar codes return this constant as their type.

Source

pub fn gs_1_data_bar_code() -> &'static Type

objects generated from GS1DataBar codes return this constant as their type.

Source

pub fn gs_1_data_bar_expanded_code() -> &'static Type

objects generated from GS1DataBarExpanded codes return this constant as their type.

Source

pub fn gs_1_data_bar_limited_code() -> &'static Type

objects generated from GS1DataBarLimited codes return this constant as their type.

Source

pub fn micro_qr_code() -> &'static Type

objects generated from MicroQR codes return this constant as their type.

Source

pub fn micro_pdf_417_code() -> &'static Type

objects generated from MicroPDF417 codes return this constant as their type.

Source

pub unsafe fn cat_head() -> Option<&'static Type>

§Availability

Not macos_26_0, ios_26_0, tvos_26_0, maccatalyst_26_0

Source

pub unsafe fn dog_head() -> Option<&'static Type>

§Availability

Not macos_26_0, ios_26_0, tvos_26_0, maccatalyst_26_0

Methods from Deref<Target = String>§

Source

pub fn retained(&self) -> R<Self>

Source

pub fn len(&self) -> usize

Source

pub fn is_empty(&self) -> bool

Source

pub fn lowercased_ar(&self) -> Rar<Self>

Source

pub fn lowercased(&self) -> R<Self>

Source

pub fn to_i32(&self) -> i32

Source

pub fn to_i64(&self) -> i64

Source

pub fn to_f32(&self) -> f32

Source

pub fn to_f64(&self) -> f64

Source

pub fn to_bool(&self) -> bool

Source

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.

Source

pub fn copy_mut(&self) -> Retained<StringMut>

Source

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.

Source

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.

Source

pub fn substring_with_range<'ear>( &self, range: Range, ) -> ExResult<'ear, R<Self>>

Source

pub fn substring<'ear>(&self, range: Range<usize>) -> ExResult<'ear, R<String>>

Source

pub fn c_string(&self, encoding: Encoding) -> *const i8

Source

pub fn len_of_bytes(&self, encoding: Encoding) -> UInteger

Source

pub unsafe fn utf8_chars_ar(&self) -> *const i8

Source

pub fn as_cf(&self) -> &String

Source

pub fn eq_ns_string(&self, other: &Self) -> bool

Source

pub fn to_selector(&self) -> Option<&'static Sel>

Source

pub fn to_class(&self) -> Option<&'static Class<Id>>

Source

pub fn hash(&self) -> UInteger

Source

pub fn path_components_ar(&self) -> Rar<Array<String>>

Source

pub fn path_components(&self) -> R<Array<String>>

Source

pub fn is_abs_path(&self) -> bool

Source

pub fn last_path_component_ar(&self) -> Rar<String>

Source

pub fn last_path_component(&self) -> R<String>

Source

pub fn string_by_deleting_last_path_component_ar(&self) -> Rar<String>

Source

pub fn string_by_deleting_last_path_component(&self) -> R<String>

Source

pub fn string_by_appending_path_component_ar(&self, str: &String) -> Rar<String>

Source

pub fn string_by_appending_path_component(&self, str: &String) -> R<String>

Source

pub fn path_extension_ar(&self) -> Rar<String>

Source

pub fn path_extension(&self) -> R<String>

Source

pub fn string_by_deleting_path_extension_ar(&self) -> Rar<String>

Source

pub fn string_by_deleting_path_extension(&self) -> R<String>

Source

pub fn string_by_appending_path_extension_ar(&self, str: &String) -> Rar<String>

Source

pub fn string_by_appending_path_extension(&self, str: &String) -> R<String>

Source

pub fn string_by_abbreviating_with_tilde_in_path_ar(&self) -> Rar<String>

Source

pub fn string_by_abbreviating_with_tilde_in_path(&self) -> R<String>

Source

pub fn string_by_expanding_tilde_in_path_ar(&self) -> Rar<String>

Source

pub fn string_by_expanding_tilde_in_path(&self) -> R<String>

Methods from Deref<Target = Id>§

Source

pub unsafe fn value_for_key_throws_ar(&self, key: &String) -> Option<Rar<Self>>

Source

pub unsafe fn value_for_key_throws(&self, key: &String) -> Option<R<Self>>

Source

pub fn value_for_key<'ear>( &self, key: &String, ) -> ExResult<'ear, Option<R<Self>>>

Source

pub unsafe fn set_value_for_key_throws( &mut self, val: Option<&Self>, key: &String, )

Source

pub fn set_value_for_key<'ear>( &mut self, val: Option<&Self>, key: &String, ) -> ExResult<'ear>

Source

pub unsafe fn value_for_key_path_throws_ar( &self, key_path: &String, ) -> Option<Rar<Self>>

Source

pub unsafe fn value_for_key_path_throws( &self, key_path: &String, ) -> Option<R<Self>>

Source

pub fn value_for_key_path<'ear>( &self, key_path: &String, ) -> ExResult<'ear, Option<R<Self>>>

Source

pub unsafe fn set_value_for_key_path_throws( &mut self, val: Option<&Self>, key_path: &String, )

Source

pub fn set_value_for_key_path<'ear>( &mut self, val: Option<&Self>, key_path: &String, ) -> ExResult<'ear>

Source

pub fn as_type_ref(&self) -> &Type

Source

pub fn as_id_ref(&self) -> &Self

Source

pub fn is_equal(&self, other: &Self) -> bool

Source

pub fn hash(&self) -> UInteger

Source

pub fn as_ptr(&self) -> *const Self

Trait Implementations§

Source§

impl AsRef<Id> for Type

Source§

fn as_ref(&self) -> &Id

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl Debug for Type

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deref for Type

Source§

type Target = String

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl DerefMut for Type

Source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
Source§

impl Obj for Type

Source§

unsafe fn retain(id: &Self) -> R<Self>

Source§

unsafe fn release(id: &mut Self)

Source§

fn desc_ar(&self) -> Rar<String>

Source§

fn desc(&self) -> R<String>

Source§

fn debug_desc_ar(&self) -> Rar<String>

Source§

fn debug_desc(&self) -> R<String>

Source§

fn responds_to_sel(&self, sel: &Sel) -> bool

Source§

fn class(&self) -> &Class<Self>

Source§

fn is_kind_of_class<T: Obj>(&self, cls: &Class<T>) -> bool

Source§

fn try_cast<T: Obj>(&self, cls: &Class<T>) -> Option<&T>

Source§

fn try_cast_mut<T: Obj>(&mut self, cls: &Class<T>) -> Option<&mut T>

Source§

fn is_member_of_class<T: Obj>(&self, cls: &Class<T>) -> bool

Source§

fn is_tagged_ptr(&self) -> bool

Source§

fn as_id_ref(&self) -> &Id

Source§

impl PartialEq for Type

Source§

fn eq(&self, other: &Type) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialEq<Retained<Type>> for Type

Source§

fn eq(&self, other: &R<Type>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Type

Auto Trait Implementations§

§

impl !Sync for Type

§

impl Freeze for Type

§

impl RefUnwindSafe for Type

§

impl Send for Type

§

impl Unpin for Type

§

impl UnsafeUnpin for Type

§

impl UnwindSafe for Type

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> Release for T
where T: Obj,

Source§

unsafe fn release(&mut self)

Source§

impl<T> Retain for T
where T: Obj,

Source§

fn retained(&self) -> Retained<T>

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.