pub struct CropWindow {
pub source_width: usize,
pub source_height: usize,
pub row_start: usize,
pub column_start: usize,
pub width: usize,
pub height: usize,
}Available on crate feature
encoder only.Expand description
A rectangular window cut out of every extracted plane, indexed in the -180-first layout the column roll produces.
column_start may run past the source’s last column: a window crossing the
antimeridian continues from column 0, so columns are always taken modulo
source_width. Rows never wrap — the grid ends at the poles.
Fields§
§source_width: usize§source_height: usize§row_start: usize§column_start: usize§width: usize§height: usizeImplementations§
Trait Implementations§
Source§impl Clone for CropWindow
impl Clone for CropWindow
impl Copy for CropWindow
Source§impl Debug for CropWindow
impl Debug for CropWindow
impl Eq for CropWindow
Source§impl PartialEq for CropWindow
impl PartialEq for CropWindow
impl StructuralPartialEq for CropWindow
Auto Trait Implementations§
impl Forget for CropWindow
impl Freeze for CropWindow
impl Move for CropWindow
impl RefUnwindSafe for CropWindow
impl Send for CropWindow
impl Sync for CropWindow
impl Unpin for CropWindow
impl UnsafeUnpin for CropWindow
impl UnwindSafe for CropWindow
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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