pub struct ImageDimensions {
pub width: Box<IntegerWithUnits>,
pub height: Box<IntegerWithUnits>,
}Expand description
ImageDimensions : The dimensions extending from the top left corner of the cropped image, or the top left corner of the original image if there is no cropping. Only pixels is allowed as the units value for ImageDimensions.
Fields
width: Box<IntegerWithUnits>height: Box<IntegerWithUnits>Implementations
sourceimpl ImageDimensions
impl ImageDimensions
sourcepub fn new(width: IntegerWithUnits, height: IntegerWithUnits) -> ImageDimensions
pub fn new(width: IntegerWithUnits, height: IntegerWithUnits) -> ImageDimensions
The dimensions extending from the top left corner of the cropped image, or the top left corner of the original image if there is no cropping. Only pixels is allowed as the units value for ImageDimensions.
Trait Implementations
sourceimpl Clone for ImageDimensions
impl Clone for ImageDimensions
sourcefn clone(&self) -> ImageDimensions
fn clone(&self) -> ImageDimensions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for ImageDimensions
impl Debug for ImageDimensions
sourceimpl Default for ImageDimensions
impl Default for ImageDimensions
sourcefn default() -> ImageDimensions
fn default() -> ImageDimensions
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ImageDimensions
impl<'de> Deserialize<'de> for ImageDimensions
sourcefn 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
sourceimpl PartialEq<ImageDimensions> for ImageDimensions
impl PartialEq<ImageDimensions> for ImageDimensions
sourcefn eq(&self, other: &ImageDimensions) -> bool
fn eq(&self, other: &ImageDimensions) -> bool
sourceimpl Serialize for ImageDimensions
impl Serialize for ImageDimensions
impl StructuralPartialEq for ImageDimensions
Auto Trait Implementations
impl RefUnwindSafe for ImageDimensions
impl Send for ImageDimensions
impl Sync for ImageDimensions
impl Unpin for ImageDimensions
impl UnwindSafe for ImageDimensions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more