pub enum VideoResolution {
Native,
IntegerScale(u32),
Hd720,
Hd1080,
Uhd4k,
Custom(u32, u32),
}Expand description
Target video resolution for output.
Variants§
Native
Native resolution (256x240 for NES)
IntegerScale(u32)
Integer scale (2x, 3x, 4x, etc.)
Hd720
720p (1280x720) - fit within bounds
Hd1080
1080p (1920x1080) - fit within bounds
Uhd4k
4K (3840x2160) - fit within bounds
Custom(u32, u32)
Custom resolution
Implementations§
Source§impl VideoResolution
impl VideoResolution
Trait Implementations§
Source§impl Clone for VideoResolution
impl Clone for VideoResolution
Source§fn clone(&self) -> VideoResolution
fn clone(&self) -> VideoResolution
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 VideoResolution
impl Debug for VideoResolution
Source§impl PartialEq for VideoResolution
impl PartialEq for VideoResolution
impl Eq for VideoResolution
impl StructuralPartialEq for VideoResolution
Auto Trait Implementations§
impl Freeze for VideoResolution
impl RefUnwindSafe for VideoResolution
impl Send for VideoResolution
impl Sync for VideoResolution
impl Unpin for VideoResolution
impl UnsafeUnpin for VideoResolution
impl UnwindSafe for VideoResolution
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,
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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more