pub struct Tag {
pub category: TagCategory,
/* private fields */
}Fields§
§category: TagCategoryImplementations§
Source§impl Tag
impl Tag
pub fn new(category: TagCategory, dtype: TagDType, val: TagValue) -> Self
pub fn with_i64(category: TagCategory, val: i64) -> Self
pub fn with_f64(category: TagCategory, val: f64) -> Self
pub fn with_os_type(category: TagCategory, val: Type) -> Self
pub fn with_flags(category: TagCategory, val: u64) -> Self
Sourcepub fn with_cf_dictionary(dict: &Dictionary) -> Self
pub fn with_cf_dictionary(dict: &Dictionary) -> Self
§Availability
macos_14_0, ios_17_0, tvos_17_0, watchos_10_0, visionos_1_0
pub fn dtype(&self) -> TagDType
pub fn val(&self) -> TagValue
pub fn val_i64(&self) -> Option<i64>
pub fn val_f64(&self) -> Option<f64>
pub fn val_os_type(&self) -> Option<Type>
pub fn val_flags(&self) -> Option<u64>
pub fn set_val_i64(&mut self, val: i64)
pub fn set_val_f64(&mut self, val: f64)
pub fn set_val_os_type(&mut self, val: Type)
pub fn set_val_flags(&mut self, val: u64)
pub const fn is_valid(&self) -> bool
pub const fn is_invalid(&self) -> bool
Sourcepub fn desc_in(&self, allocator: Option<&Allocator>) -> Option<R<String>>
pub fn desc_in(&self, allocator: Option<&Allocator>) -> Option<R<String>>
§Availability
macos_14_0, ios_17_0, tvos_17_0, watchos_10_0, visionos_1_0
Sourcepub fn desc(&self) -> R<String>
pub fn desc(&self) -> R<String>
§Availability
macos_14_0, ios_17_0, tvos_17_0, watchos_10_0, visionos_1_0
Sourcepub fn to_cf_dictionary_in(
&self,
allocator: Option<&Allocator>,
) -> Option<R<DictionaryOf<String, Type>>>
pub fn to_cf_dictionary_in( &self, allocator: Option<&Allocator>, ) -> Option<R<DictionaryOf<String, Type>>>
§Availability
macos_14_0, ios_17_0, tvos_17_0, watchos_10_0, visionos_1_0
Sourcepub fn to_cf_dictionary(&self) -> R<DictionaryOf<String, Type>>
pub fn to_cf_dictionary(&self) -> R<DictionaryOf<String, Type>>
§Availability
macos_14_0, ios_17_0, tvos_17_0, watchos_10_0, visionos_1_0
Trait Implementations§
impl Copy for Tag
impl Eq for Tag
Source§impl From<&Dictionary> for Tag
Available on iOS and crate feature ios_17_0, or macOS and crate feature macos_14_0, or tvOS and crate feature tvos_17_0, or visionOS and crate feature visionos_1_0, or watchOS and crate feature watchos_10_0 only.
impl From<&Dictionary> for Tag
Available on iOS and crate feature
ios_17_0, or macOS and crate feature macos_14_0, or tvOS and crate feature tvos_17_0, or visionOS and crate feature visionos_1_0, or watchOS and crate feature watchos_10_0 only.Source§fn from(value: &Dictionary) -> Self
fn from(value: &Dictionary) -> Self
Converts to this type from the input type.
Source§impl From<&DictionaryOf<String, Type>> for Tag
Available on iOS and crate feature ios_17_0, or macOS and crate feature macos_14_0, or tvOS and crate feature tvos_17_0, or visionOS and crate feature visionos_1_0, or watchOS and crate feature watchos_10_0 only.
impl From<&DictionaryOf<String, Type>> for Tag
Available on iOS and crate feature
ios_17_0, or macOS and crate feature macos_14_0, or tvOS and crate feature tvos_17_0, or visionOS and crate feature visionos_1_0, or watchOS and crate feature watchos_10_0 only.Source§impl Into<Retained<DictionaryOf<String, Type>>> for Tag
Available on iOS and crate feature ios_17_0, or macOS and crate feature macos_14_0, or tvOS and crate feature tvos_17_0, or visionOS and crate feature visionos_1_0, or watchOS and crate feature watchos_10_0 only.
impl Into<Retained<DictionaryOf<String, Type>>> for Tag
Available on iOS and crate feature
ios_17_0, or macOS and crate feature macos_14_0, or tvOS and crate feature tvos_17_0, or visionOS and crate feature visionos_1_0, or watchOS and crate feature watchos_10_0 only.impl StructuralPartialEq for Tag
Auto Trait Implementations§
impl Freeze for Tag
impl RefUnwindSafe for Tag
impl Send for Tag
impl Sync for Tag
impl Unpin for Tag
impl UnsafeUnpin for Tag
impl UnwindSafe for Tag
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