pub struct ImageDimensions {
pub width: Box<IntegerWithUnits>,
pub height: Box<IntegerWithUnits>,
}Expand description
ImageDimensions : The dimensions that extend from the top left corner of the image (this applies to cropped and uncropped images). ImageDimensions units must be in pixels.
Fields§
§width: Box<IntegerWithUnits>§height: Box<IntegerWithUnits>Implementations§
Source§impl ImageDimensions
impl ImageDimensions
Sourcepub fn new(width: IntegerWithUnits, height: IntegerWithUnits) -> ImageDimensions
pub fn new(width: IntegerWithUnits, height: IntegerWithUnits) -> ImageDimensions
The dimensions that extend from the top left corner of the image (this applies to cropped and uncropped images). ImageDimensions units must be in pixels.
Trait Implementations§
Source§impl Clone for ImageDimensions
impl Clone for ImageDimensions
Source§fn clone(&self) -> ImageDimensions
fn clone(&self) -> ImageDimensions
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 ImageDimensions
impl Debug for ImageDimensions
Source§impl Default for ImageDimensions
impl Default for ImageDimensions
Source§fn default() -> ImageDimensions
fn default() -> ImageDimensions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ImageDimensions
impl<'de> Deserialize<'de> for ImageDimensions
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 ImageDimensions
impl PartialEq for ImageDimensions
Source§impl Serialize for ImageDimensions
impl Serialize for ImageDimensions
impl StructuralPartialEq for ImageDimensions
Auto Trait Implementations§
impl Freeze for ImageDimensions
impl RefUnwindSafe for ImageDimensions
impl Send for ImageDimensions
impl Sync for ImageDimensions
impl Unpin for ImageDimensions
impl UnsafeUnpin for ImageDimensions
impl UnwindSafe for ImageDimensions
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