pub struct ImageOffsets {
pub x: Box<IntegerWithUnits>,
pub y: Box<IntegerWithUnits>,
}Expand description
ImageOffsets : The top left corner of the cropped image, specified in the original image’s coordinate space.
Fields§
§x: Box<IntegerWithUnits>§y: Box<IntegerWithUnits>Implementations§
Source§impl ImageOffsets
impl ImageOffsets
Sourcepub fn new(x: IntegerWithUnits, y: IntegerWithUnits) -> ImageOffsets
pub fn new(x: IntegerWithUnits, y: IntegerWithUnits) -> ImageOffsets
The top left corner of the cropped image, specified in the original image’s coordinate space.
Trait Implementations§
Source§impl Clone for ImageOffsets
impl Clone for ImageOffsets
Source§fn clone(&self) -> ImageOffsets
fn clone(&self) -> ImageOffsets
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ImageOffsets
impl Debug for ImageOffsets
Source§impl Default for ImageOffsets
impl Default for ImageOffsets
Source§fn default() -> ImageOffsets
fn default() -> ImageOffsets
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ImageOffsets
impl<'de> Deserialize<'de> for ImageOffsets
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ImageOffsets
impl PartialEq for ImageOffsets
Source§impl Serialize for ImageOffsets
impl Serialize for ImageOffsets
impl StructuralPartialEq for ImageOffsets
Auto Trait Implementations§
impl Freeze for ImageOffsets
impl RefUnwindSafe for ImageOffsets
impl Send for ImageOffsets
impl Sync for ImageOffsets
impl Unpin for ImageOffsets
impl UnsafeUnpin for ImageOffsets
impl UnwindSafe for ImageOffsets
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