pub struct DecodeArea {
pub start_x: u32,
pub start_y: u32,
pub end_x: u32,
pub end_y: u32,
}Expand description
Rectangular decode area in image coordinates (x0 <= x < x1).
Fields§
§start_x: u32Inclusive x origin.
start_y: u32Inclusive y origin.
end_x: u32Exclusive x end.
end_y: u32Exclusive y end.
Implementations§
Source§impl DecodeArea
impl DecodeArea
Trait Implementations§
Source§impl Clone for DecodeArea
impl Clone for DecodeArea
Source§fn clone(&self) -> DecodeArea
fn clone(&self) -> DecodeArea
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DecodeArea
Source§impl Debug for DecodeArea
impl Debug for DecodeArea
Source§impl Default for DecodeArea
impl Default for DecodeArea
Source§fn default() -> DecodeArea
fn default() -> DecodeArea
Returns the “default value” for a type. Read more
impl Eq for DecodeArea
Source§impl FromStr for DecodeArea
impl FromStr for DecodeArea
Source§fn from_str(s: &str) -> Result<DecodeArea, <DecodeArea as FromStr>::Err>
fn from_str(s: &str) -> Result<DecodeArea, <DecodeArea as FromStr>::Err>
Parses "x0:y0:x1:y1"; missing fields default to 0.
Source§type Err = ParseIntError
type Err = ParseIntError
The associated error which can be returned from parsing.
Source§impl PartialEq for DecodeArea
impl PartialEq for DecodeArea
impl StructuralPartialEq for DecodeArea
Auto Trait Implementations§
impl Forget for DecodeArea
impl Freeze for DecodeArea
impl Move for DecodeArea
impl RefUnwindSafe for DecodeArea
impl Send for DecodeArea
impl Sync for DecodeArea
impl Unpin for DecodeArea
impl UnsafeUnpin for DecodeArea
impl UnwindSafe for DecodeArea
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,
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