pub enum AspectRatio {
MobilePortrait,
MobileLandscape,
Standard,
Ultrawide,
SuperUltrawide,
Custom(f32, f32),
}Expand description
Aspect ratio presets
Variants§
MobilePortrait
Mobile portrait (9:16)
MobileLandscape
Mobile landscape (16:9)
Standard
Desktop standard (16:9)
Ultrawide
Ultrawide (21:9)
SuperUltrawide
Super ultrawide (32:9) - 49“ monitors
Custom(f32, f32)
Custom aspect ratio
Implementations§
Source§impl AspectRatio
impl AspectRatio
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 · 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 AspectRatio
impl Debug for AspectRatio
Source§impl Default for AspectRatio
impl Default for AspectRatio
Source§fn default() -> AspectRatio
fn default() -> AspectRatio
Returns the “default value” for a type. Read more
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 PartialEq for AspectRatio
impl PartialEq for AspectRatio
Source§impl Serialize for AspectRatio
impl Serialize for AspectRatio
impl Copy 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 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