Struct tiff::encoder::DirectoryEncoder
source · pub struct DirectoryEncoder<'a, W: 'a + Write + Seek> { /* private fields */ }Expand description
Low level interface to encode ifd directories.
You should call finish on this when you are finished with it.
Encoding can silently fail while this is dropping.
Implementations§
source§impl<'a, W: 'a + Write + Seek> DirectoryEncoder<'a, W>
impl<'a, W: 'a + Write + Seek> DirectoryEncoder<'a, W>
sourcepub fn write_tag<T: TiffValue>(&mut self, tag: Tag, value: T) -> TiffResult<()>
pub fn write_tag<T: TiffValue>(&mut self, tag: Tag, value: T) -> TiffResult<()>
Write a single ifd tag.
sourcepub fn write_data<T: TiffValue>(&mut self, value: T) -> TiffResult<u64>
pub fn write_data<T: TiffValue>(&mut self, value: T) -> TiffResult<u64>
Write some data to the tiff file, the offset of the data is returned.
This could be used to write tiff strips.
sourcepub fn finish(self) -> TiffResult<()>
pub fn finish(self) -> TiffResult<()>
Write out the ifd directory.
Trait Implementations§
Auto Trait Implementations§
impl<'a, W> Freeze for DirectoryEncoder<'a, W>
impl<'a, W> RefUnwindSafe for DirectoryEncoder<'a, W>where
W: RefUnwindSafe,
impl<'a, W> Send for DirectoryEncoder<'a, W>where
W: Send,
impl<'a, W> Sync for DirectoryEncoder<'a, W>where
W: Sync,
impl<'a, W> Unpin for DirectoryEncoder<'a, W>
impl<'a, W> !UnwindSafe for DirectoryEncoder<'a, W>
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> 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