Struct tiff::encoder::writer::TiffWriter
source · pub struct TiffWriter<W> {
writer: W,
offset: u64,
byte_count: u64,
compressor: Compressor,
}
Fields§
§writer: W
§offset: u64
§byte_count: u64
§compressor: Compressor
Implementations§
source§impl<W: Write> TiffWriter<W>
impl<W: Write> TiffWriter<W>
pub fn new(writer: W) -> Self
pub fn set_compression(&mut self, compressor: Compressor)
pub fn reset_compression(&mut self)
pub fn offset(&self) -> u64
pub fn last_written(&self) -> u64
pub fn write_bytes(&mut self, bytes: &[u8]) -> Result<(), Error>
pub fn write_u8(&mut self, n: u8) -> Result<(), Error>
pub fn write_i8(&mut self, n: i8) -> Result<(), Error>
pub fn write_u16(&mut self, n: u16) -> Result<(), Error>
pub fn write_i16(&mut self, n: i16) -> Result<(), Error>
pub fn write_u32(&mut self, n: u32) -> Result<(), Error>
pub fn write_i32(&mut self, n: i32) -> Result<(), Error>
pub fn write_u64(&mut self, n: u64) -> Result<(), Error>
pub fn write_i64(&mut self, n: i64) -> Result<(), Error>
pub fn write_f32(&mut self, n: f32) -> Result<(), Error>
pub fn write_f64(&mut self, n: f64) -> Result<(), Error>
pub fn pad_word_boundary(&mut self) -> Result<(), Error>
source§impl<W: Seek> TiffWriter<W>
impl<W: Seek> TiffWriter<W>
Auto Trait Implementations§
impl<W> Freeze for TiffWriter<W>where
W: Freeze,
impl<W> RefUnwindSafe for TiffWriter<W>where
W: RefUnwindSafe,
impl<W> Send for TiffWriter<W>where
W: Send,
impl<W> Sync for TiffWriter<W>where
W: Sync,
impl<W> Unpin for TiffWriter<W>where
W: Unpin,
impl<W> UnwindSafe for TiffWriter<W>where
W: UnwindSafe,
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