pub struct Resolution<T> {
pub width: T,
pub height: T,
}Expand description
Struct used to store widht-height resolutions
Fields§
§width: T§height: TTrait Implementations§
Source§impl<T: Default> Default for Resolution<T>
impl<T: Default> Default for Resolution<T>
Source§fn default() -> Resolution<T>
fn default() -> Resolution<T>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<T> Freeze for Resolution<T>where
T: Freeze,
impl<T> RefUnwindSafe for Resolution<T>where
T: RefUnwindSafe,
impl<T> Send for Resolution<T>where
T: Send,
impl<T> Sync for Resolution<T>where
T: Sync,
impl<T> Unpin for Resolution<T>where
T: Unpin,
impl<T> UnwindSafe for Resolution<T>where
T: UnwindSafe,
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