pub struct AspectRatio {
pub width: u32,
pub height: u32,
}Expand description
Aspect ratio, serialized as WIDTH:HEIGHT.
Fields§
§width: u32Horizontal component.
height: u32Vertical component.
Implementations§
Trait Implementations§
Source§impl Clone for AspectRatio
impl Clone for AspectRatio
Source§fn clone(&self) -> AspectRatio
fn clone(&self) -> AspectRatio
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 moreimpl Copy for AspectRatio
Source§impl Debug for AspectRatio
impl Debug for AspectRatio
Source§impl<'de> Deserialize<'de> for AspectRatio
impl<'de> Deserialize<'de> for AspectRatio
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 Display for AspectRatio
impl Display for AspectRatio
impl Eq for AspectRatio
Source§impl From<AspectRatio> for String
impl From<AspectRatio> for String
Source§fn from(ratio: AspectRatio) -> Self
fn from(ratio: AspectRatio) -> Self
Converts to this type from the input type.
Source§impl FromStr for AspectRatio
impl FromStr for AspectRatio
Source§impl Hash for AspectRatio
impl Hash for AspectRatio
Source§impl PartialEq for AspectRatio
impl PartialEq for AspectRatio
Source§impl Serialize for AspectRatio
impl Serialize for AspectRatio
impl StructuralPartialEq for AspectRatio
Auto Trait Implementations§
impl Freeze for AspectRatio
impl RefUnwindSafe for AspectRatio
impl Send for AspectRatio
impl Sync for AspectRatio
impl Unpin for AspectRatio
impl UnsafeUnpin for AspectRatio
impl UnwindSafe for AspectRatio
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.