Struct tiff::decoder::image::TileAttributes
source · pub(crate) struct TileAttributes {
pub image_width: usize,
pub image_height: usize,
pub tile_width: usize,
pub tile_length: usize,
}
Expand description
Computed values useful for tile decoding
Fields§
§image_width: usize
§image_height: usize
§tile_width: usize
§tile_length: usize
Implementations§
source§impl TileAttributes
impl TileAttributes
pub fn tiles_across(&self) -> usize
pub fn tiles_down(&self) -> usize
fn padding_right(&self) -> usize
fn padding_down(&self) -> usize
pub fn get_padding(&self, tile: usize) -> (usize, usize)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TileAttributes
impl RefUnwindSafe for TileAttributes
impl Send for TileAttributes
impl Sync for TileAttributes
impl Unpin for TileAttributes
impl UnwindSafe for TileAttributes
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