pub struct Ifd(pub u32);
Expand description
Type to represent tiff values of type IFD
Tuple Fields
0: u32
Trait Implementations
sourceimpl TiffValue for Ifd
impl TiffValue for Ifd
const BYTE_LEN: u8 = 4u8
const FIELD_TYPE: Type = Type::IFD
fn count(&self) -> usize
sourcefn write<W: Write>(&self, writer: &mut TiffWriter<W>) -> TiffResult<()>
fn 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()
. Read moresourcefn data(&self) -> Cow<'_, [u8]>
fn data(&self) -> Cow<'_, [u8]>
Access this value as an contiguous sequence of bytes.
If their is no trivial representation, allocate it on the heap. Read more
fn bytes(&self) -> usize
Auto Trait Implementations
impl RefUnwindSafe for Ifd
impl Send for Ifd
impl Sync for Ifd
impl Unpin for Ifd
impl UnwindSafe for Ifd
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more