Trait TiffValue
pub trait TiffValue
Trait for types that can be encoded in a tiff file
Associated Constants
const BYTE_LEN: u8;const FIELD_TYPE: Type;
Required Methods
fn count(&self) -> usizefn data(&self) -> Cow<'_, [u8]>Access this value as an contiguous sequence of bytes. If their is no trivial representation, allocate it on the heap.
Provided Methods
fn bytes(&self) -> usizefn write<W: Write>(&self, writer: &mut TiffWriter<W>) -> TiffResult<()>Write this value to a TiffWriter. While the default implementation will work in all cases, it may require unnecessary allocations. The written bytes of any custom implementation MUST be the same as yielded by
self.data().
Implementors
impl TiffValue for CompressionMethodimpl TiffValue for Ifdimpl TiffValue for Ifd8impl TiffValue for PhotometricInterpretationimpl TiffValue for PlanarConfigurationimpl TiffValue for Predictorimpl TiffValue for Rationalimpl TiffValue for ResolutionUnitimpl TiffValue for SRationalimpl TiffValue for [ExtraSamples]impl TiffValue for [Ifd8]impl TiffValue for [Ifd]impl TiffValue for [Rational]impl TiffValue for [SRational]impl TiffValue for [SampleFormat]impl TiffValue for [f32]impl TiffValue for [f64]impl TiffValue for [i16]impl TiffValue for [i32]impl TiffValue for [i64]impl TiffValue for [i8]impl TiffValue for [u16]impl TiffValue for [u32]impl TiffValue for [u64]impl TiffValue for [u8]impl TiffValue for f32impl TiffValue for f64impl TiffValue for i16impl TiffValue for i32impl TiffValue for i64impl TiffValue for i8impl TiffValue for strimpl TiffValue for u16impl TiffValue for u32impl TiffValue for u64impl TiffValue for u8impl<T, const N: usize> TiffValue for [T; N] where [T]: TiffValue,impl<T: TiffValue + ?Sized> TiffValue for &T