pub struct ImageAspectRatio {
pub width: u32,
pub height: u32,
}Expand description
Integer image aspect ratio.
Fields§
§width: u32§height: u32Implementations§
Source§impl ImageAspectRatio
impl ImageAspectRatio
Sourcepub const fn new(width: u32, height: u32) -> ImageAspectRatio
pub const fn new(width: u32, height: u32) -> ImageAspectRatio
Builds a ratio value directly.
Trait Implementations§
Source§impl Clone for ImageAspectRatio
impl Clone for ImageAspectRatio
Source§fn clone(&self) -> ImageAspectRatio
fn clone(&self) -> ImageAspectRatio
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 moreSource§impl Debug for ImageAspectRatio
impl Debug for ImageAspectRatio
Source§impl Default for ImageAspectRatio
impl Default for ImageAspectRatio
Source§fn default() -> ImageAspectRatio
fn default() -> ImageAspectRatio
Returns the “default value” for a type. Read more
Source§impl Hash for ImageAspectRatio
impl Hash for ImageAspectRatio
Source§impl PartialEq for ImageAspectRatio
impl PartialEq for ImageAspectRatio
Source§fn eq(&self, other: &ImageAspectRatio) -> bool
fn eq(&self, other: &ImageAspectRatio) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ImageAspectRatio
impl Eq for ImageAspectRatio
impl StructuralPartialEq for ImageAspectRatio
Auto Trait Implementations§
impl Freeze for ImageAspectRatio
impl RefUnwindSafe for ImageAspectRatio
impl Send for ImageAspectRatio
impl Sync for ImageAspectRatio
impl Unpin for ImageAspectRatio
impl UnsafeUnpin for ImageAspectRatio
impl UnwindSafe for ImageAspectRatio
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