pub enum DataType {
WellKnown(u32),
Custom(String),
Unknown(u32, Vec<u8>),
}Expand description
The value type declared by a Dtyp atom.
Variants§
WellKnown(u32)
datatype_namespace 0: a well-known type code shared with the
iTunes data atom (e.g. 1 = UTF-8, 21 = BE signed integer, 23 =
BE float32) – see the well-known types table.
Custom(String)
datatype_namespace 1: a namespace-specific type name (a
case-sensitive reverse-DNS string, e.g. for a custom/structured value
type not covered by a well-known type).
Unknown(u32, Vec<u8>)
A datatype_namespace this crate doesn’t interpret (reserved for a
future revision of the spec, or a foreign metadata standard’s own
numbering/naming scheme); the raw bytes are preserved as-is.
Trait Implementations§
impl Eq for DataType
impl StructuralPartialEq for DataType
Auto Trait Implementations§
impl Freeze for DataType
impl RefUnwindSafe for DataType
impl Send for DataType
impl Sync for DataType
impl Unpin for DataType
impl UnsafeUnpin for DataType
impl UnwindSafe for DataType
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