pub enum Resolutions {
Show 23 variants
R1280x720,
R1280x800,
R1280x960,
R1280x1024,
R3440x1440,
R1600x900,
R1600x1000,
R1600x1200,
R1600x1280,
R3840x1600,
R1920x1080,
R1920x1200,
R1920x1440,
R1920x1536,
R2560x1080,
R2560x1440,
R2560x1600,
R2560x1920,
R2560x2048,
R3840x2160,
R3840x2400,
R3840x2880,
R3840x3072,
}
Variants§
R1280x720
R1280x800
R1280x960
R1280x1024
R3440x1440
R1600x900
R1600x1000
R1600x1200
R1600x1280
R3840x1600
R1920x1080
R1920x1200
R1920x1440
R1920x1536
R2560x1080
R2560x1440
R2560x1600
R2560x1920
R2560x2048
R3840x2160
R3840x2400
R3840x2880
R3840x3072
Implementations§
Source§impl Resolutions
impl Resolutions
pub fn dimensions(&self) -> (u32, u32)
Trait Implementations§
Source§impl Clone for Resolutions
impl Clone for Resolutions
Source§fn clone(&self) -> Resolutions
fn clone(&self) -> Resolutions
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 Default for Resolutions
impl Default for Resolutions
Source§fn default() -> Resolutions
fn default() -> Resolutions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Resolutions
impl<'de> Deserialize<'de> for Resolutions
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
Auto Trait Implementations§
impl Freeze for Resolutions
impl RefUnwindSafe for Resolutions
impl Send for Resolutions
impl Sync for Resolutions
impl Unpin for Resolutions
impl UnwindSafe for Resolutions
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