Enum citro3d::math::AspectRatio
source · #[non_exhaustive]pub enum AspectRatio {
TopScreen,
BottomScreen,
Other(f32),
}
Expand description
The aspect ratio of a projection plane.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TopScreen
The aspect ratio of the 3DS’ top screen (per-eye).
BottomScreen
The aspect ratio of the 3DS’ bottom screen.
Other(f32)
A custom aspect ratio (should be calcualted as width / height
).
Trait Implementations§
source§impl Clone for AspectRatio
impl Clone for AspectRatio
source§fn clone(&self) -> AspectRatio
fn clone(&self) -> AspectRatio
Returns a copy of the value. Read more
1.0.0§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 From<AspectRatio> for f32
impl From<AspectRatio> for f32
source§fn from(ratio: AspectRatio) -> Self
fn from(ratio: AspectRatio) -> Self
Converts to this type from the input type.
impl Copy for AspectRatio
Auto Trait Implementations§
impl RefUnwindSafe for AspectRatio
impl Send for AspectRatio
impl Sync for AspectRatio
impl Unpin for AspectRatio
impl UnwindSafe for AspectRatio
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more