Enum Value
#[non_exhaustive]
pub enum Value
Variants
-
Byte(u8) -
Short(u16) -
SignedByte(i8) -
SignedShort(i16) -
Signed(i32) -
SignedBig(i64) -
Unsigned(u32) -
UnsignedBig(u64) -
Float(f32) -
Double(f64) -
List(Vec<Value>) -
Rational(u32, u32) -
RationalBig(u64, u64) -
SRational(i32, i32) -
SRationalBig(i64, i64) -
Ascii(String) -
Ifd(u32) -
IfdBig(u64)
Implementations
impl Value
fn into_u8(self) -> TiffResult<u8>fn into_i8(self) -> TiffResult<i8>fn into_u16(self) -> TiffResult<u16>fn into_i16(self) -> TiffResult<i16>fn into_u32(self) -> TiffResult<u32>fn into_i32(self) -> TiffResult<i32>fn into_u64(self) -> TiffResult<u64>fn into_i64(self) -> TiffResult<i64>fn into_f32(self) -> TiffResult<f32>fn into_f64(self) -> TiffResult<f64>fn into_ifd_pointer(self) -> TiffResult<IfdPointer>Turn this value into an
IfdPointer.Notice that this does not take an argument, a 64-bit IFD is always allowed. If the difference is crucial and you do not want to be permissive you're expected to filter this out before.
For compatibility the smaller sized tags should always be allowed i.e. you might use a non-bigtiff's directory and its tag types and move it straight to a bigtiff. For instance the SubIFD tag is defined as
LONG or IFD:fn into_string(self) -> TiffResult<String>fn into_u32_vec(self) -> TiffResult<Vec<u32>>fn into_u8_vec(self) -> TiffResult<Vec<u8>>fn into_u16_vec(self) -> TiffResult<Vec<u16>>fn into_i32_vec(self) -> TiffResult<Vec<i32>>fn into_f32_vec(self) -> TiffResult<Vec<f32>>fn into_f64_vec(self) -> TiffResult<Vec<f64>>fn into_u64_vec(self) -> TiffResult<Vec<u64>>fn into_i64_vec(self) -> TiffResult<Vec<i64>>fn into_ifd_vec(self) -> TiffResult<Vec<IfdPointer>>
Trait Implementations
impl Clone for Value
fn clone(&self) -> Self
impl Debug for Value
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl PartialEq for Value
fn eq(&self, other: &Self) -> bool