Struct tiff::encoder::TiffKindStandard
source · pub struct TiffKindStandard;
Expand description
Create a standard Tiff file.
Trait Implementations§
source§impl TiffKind for TiffKindStandard
impl TiffKind for TiffKindStandard
§type OffsetType = u32
type OffsetType = u32
The type of offset fields,
u32
for normal Tiff, u64
for BigTiff.§type OffsetArrayType = [u32]
type OffsetArrayType = [u32]
Needed for the
convert_slice
method.source§fn write_header<W: Write>(writer: &mut TiffWriter<W>) -> TiffResult<()>
fn write_header<W: Write>(writer: &mut TiffWriter<W>) -> TiffResult<()>
Write the (Big)Tiff header.
source§fn convert_offset(offset: u64) -> TiffResult<Self::OffsetType>
fn convert_offset(offset: u64) -> TiffResult<Self::OffsetType>
Convert a file offset to
Self::OffsetType
. Read moresource§fn write_offset<W: Write>(
writer: &mut TiffWriter<W>,
offset: u64,
) -> TiffResult<()>
fn write_offset<W: Write>( writer: &mut TiffWriter<W>, offset: u64, ) -> TiffResult<()>
Write an offset value to the given writer. Read more
source§fn write_entry_count<W: Write>(
writer: &mut TiffWriter<W>,
count: usize,
) -> TiffResult<()>
fn write_entry_count<W: Write>( writer: &mut TiffWriter<W>, count: usize, ) -> TiffResult<()>
Write the IFD entry count field with the given
count
value. Read moresource§fn convert_slice(slice: &[Self::OffsetType]) -> &Self::OffsetArrayType
fn convert_slice(slice: &[Self::OffsetType]) -> &Self::OffsetArrayType
Internal helper method for satisfying Rust’s type checker. Read more
Auto Trait Implementations§
impl Freeze for TiffKindStandard
impl RefUnwindSafe for TiffKindStandard
impl Send for TiffKindStandard
impl Sync for TiffKindStandard
impl Unpin for TiffKindStandard
impl UnwindSafe for TiffKindStandard
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