pub struct TagCollection(/* private fields */);Implementations§
Source§impl TagCollection
impl TagCollection
Sourcepub fn type_id() -> TypeId
pub fn type_id() -> TypeId
§Availability
macos_14_0, ios_17_0, tvos_17_0, watchos_10_0, visionos_1_0
Sourcepub unsafe fn create_in(
tags: *const Tag,
tag_count: ItemCount,
out: *mut Option<R<Self>>,
allocator: Option<&Allocator>,
) -> Status
pub unsafe fn create_in( tags: *const Tag, tag_count: ItemCount, out: *mut Option<R<Self>>, allocator: Option<&Allocator>, ) -> Status
§Availability
macos_14_0, ios_17_0, tvos_17_0, watchos_10_0, visionos_1_0
§Availability
macos_14_0, ios_17_0, tvos_17_0, watchos_10_0, visionos_1_0
Sourcepub fn count(&self) -> ItemCount
pub fn count(&self) -> ItemCount
§Availability
macos_14_0, ios_17_0, tvos_17_0, watchos_10_0, visionos_1_0
Sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
§Availability
macos_14_0, ios_17_0, tvos_17_0, watchos_10_0, visionos_1_0
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
§Availability
macos_14_0, ios_17_0, tvos_17_0, watchos_10_0, visionos_1_0
Sourcepub fn contains(&self, val: Tag) -> bool
pub fn contains(&self, val: Tag) -> bool
§Availability
macos_14_0, ios_17_0, tvos_17_0, watchos_10_0, visionos_1_0
Sourcepub fn contains_collection(&self, val: &TagCollection) -> bool
pub fn contains_collection(&self, val: &TagCollection) -> bool
§Availability
macos_14_0, ios_17_0, tvos_17_0, watchos_10_0, visionos_1_0
§Availability
macos_14_0, ios_17_0, tvos_17_0, watchos_10_0, visionos_1_0
Sourcepub fn contains_catogery(&self, val: TagCategory) -> bool
pub fn contains_catogery(&self, val: TagCategory) -> bool
§Availability
macos_14_0, ios_17_0, tvos_17_0, watchos_10_0, visionos_1_0
Methods from Deref<Target = Type>§
pub fn get_type_id(&self) -> TypeId
pub unsafe fn as_type_ptr(&self) -> *const c_void
pub fn as_type_ref(&self) -> &Type
pub fn is_tagged_ptr(&self) -> bool
pub fn try_as_number(&self) -> Option<&Number>
pub fn try_as_string(&self) -> Option<&String>
pub fn show(&self)
pub fn allocator(&self) -> Option<&Allocator>
pub fn retain_count(&self) -> isize
Sourcepub fn equal(&self, other: &Type) -> bool
pub fn equal(&self, other: &Type) -> bool
use cidre::cf;
let n1 = cf::Number::from_i8(4);
let n2 = cf::Number::from_i32(4);
let n3 = cf::Number::from_f64(3.0);
assert!(n1.equal(&n2));
assert_eq!(false, n1.equal(&n3));pub fn hash(&self) -> usize
pub fn desc(&self) -> R<String>
Trait Implementations§
Source§impl AsRef<Type> for TagCollection
impl AsRef<Type> for TagCollection
Source§impl Debug for TagCollection
impl Debug for TagCollection
Source§impl Deref for TagCollection
impl Deref for TagCollection
Source§impl DerefMut for TagCollection
impl DerefMut for TagCollection
Auto Trait Implementations§
impl !Send for TagCollection
impl !Sync for TagCollection
impl Freeze for TagCollection
impl RefUnwindSafe for TagCollection
impl Unpin for TagCollection
impl UnsafeUnpin for TagCollection
impl UnwindSafe for TagCollection
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