#[repr(C)]pub struct AspectRatioValue {
pub width: u32,
pub height: u32,
}Expand description
Width/height ratio stored as fixed-point (value * 1000).
Fields§
§width: u32§height: u32Trait Implementations§
Source§impl Clone for AspectRatioValue
impl Clone for AspectRatioValue
Source§fn clone(&self) -> AspectRatioValue
fn clone(&self) -> AspectRatioValue
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 AspectRatioValue
impl Debug for AspectRatioValue
Source§impl Hash for AspectRatioValue
impl Hash for AspectRatioValue
Source§impl Ord for AspectRatioValue
impl Ord for AspectRatioValue
Source§fn cmp(&self, other: &AspectRatioValue) -> Ordering
fn cmp(&self, other: &AspectRatioValue) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AspectRatioValue
impl PartialEq for AspectRatioValue
Source§fn eq(&self, other: &AspectRatioValue) -> bool
fn eq(&self, other: &AspectRatioValue) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AspectRatioValue
impl PartialOrd for AspectRatioValue
impl Copy for AspectRatioValue
impl Eq for AspectRatioValue
impl StructuralPartialEq for AspectRatioValue
Auto Trait Implementations§
impl Freeze for AspectRatioValue
impl RefUnwindSafe for AspectRatioValue
impl Send for AspectRatioValue
impl Sync for AspectRatioValue
impl Unpin for AspectRatioValue
impl UnsafeUnpin for AspectRatioValue
impl UnwindSafe for AspectRatioValue
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