#[repr(transparent)]pub struct CGImageMetadataType(pub i32);
CGImageMetadata
only.Expand description
The XMP type for a CGImageMetadataTag
CGImageMetadataType defines a list of constants used to indicate the type for a CGImageMetadataTag. If you are reading metadata, use the type to determine how to interpret the CGImageMetadataTag’s value. If you are creating a CGImageMetadataTag, use the type to specify how the tag should be serialized in XMP. String types have CFStringRef values, array types have CFArray values, and structure types have CFDictionary values.
CFType of the tag’s value. This is only used when creating a new CGImageMetadataTag - no existing tags should have this value. CFString defaults to kCGImageMetadataTypeString, CFArray defaults to kCGImageMetadataTypeArrayOrdered, and CFDictionary defaults to kCGImageMetadataTypeStructure.
values will be converted to a string.
Serialized in XMP as
Serialized in XMP as
are alternates for the same value. Serialized in XMP as
where all elements are different localized strings for the same value. Serialized in XMP as an alternate array of strings with xml:lang qualifiers.
array elements, fields of a structure may belong to different namespaces.
See also Apple’s documentation
Tuple Fields§
§0: i32
Implementations§
Source§impl CGImageMetadataType
impl CGImageMetadataType
pub const Invalid: Self
pub const Default: Self
pub const String: Self
pub const ArrayUnordered: Self
pub const ArrayOrdered: Self
pub const AlternateArray: Self
pub const AlternateText: Self
pub const Structure: Self
Trait Implementations§
Source§impl Clone for CGImageMetadataType
impl Clone for CGImageMetadataType
Source§fn clone(&self) -> CGImageMetadataType
fn clone(&self) -> CGImageMetadataType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CGImageMetadataType
impl Debug for CGImageMetadataType
Source§impl Encode for CGImageMetadataType
Available on crate feature objc2
only.
impl Encode for CGImageMetadataType
objc2
only.Source§impl Hash for CGImageMetadataType
impl Hash for CGImageMetadataType
Source§impl Ord for CGImageMetadataType
impl Ord for CGImageMetadataType
Source§fn cmp(&self, other: &CGImageMetadataType) -> Ordering
fn cmp(&self, other: &CGImageMetadataType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for CGImageMetadataType
impl PartialEq for CGImageMetadataType
Source§impl PartialOrd for CGImageMetadataType
impl PartialOrd for CGImageMetadataType
Source§impl RefEncode for CGImageMetadataType
Available on crate feature objc2
only.
impl RefEncode for CGImageMetadataType
objc2
only.