pub enum TagValue {
}Expand description
Decoded tag value.
Variants§
Byte(Vec<u8>)
Ascii(String)
Short(Vec<u16>)
Long(Vec<u32>)
Rational(Vec<[u32; 2]>)
SByte(Vec<i8>)
Undefined(Vec<u8>)
SShort(Vec<i16>)
SLong(Vec<i32>)
SRational(Vec<[i32; 2]>)
Float(Vec<f32>)
Double(Vec<f64>)
Long8(Vec<u64>)
SLong8(Vec<i64>)
Implementations§
Source§impl TagValue
impl TagValue
Sourcepub fn as_f64_vec(&self) -> Option<Vec<f64>>
pub fn as_f64_vec(&self) -> Option<Vec<f64>>
Extract as a slice of f64 values.
Sourcepub fn as_u64_vec(&self) -> Option<Vec<u64>>
pub fn as_u64_vec(&self) -> Option<Vec<u64>>
Extract a value list as unsigned offsets/counts.
Sourcepub fn as_u16_slice(&self) -> Option<&[u16]>
pub fn as_u16_slice(&self) -> Option<&[u16]>
Extract a SHORT array without cloning when possible.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TagValue
impl RefUnwindSafe for TagValue
impl Send for TagValue
impl Sync for TagValue
impl Unpin for TagValue
impl UnsafeUnpin for TagValue
impl UnwindSafe for TagValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more