pub struct ModeDesc<W, H, R, F> {
pub width: W,
pub height: H,
pub refresh_rate: R,
pub format: F,
pub scanline_ordering: ModeScanlineOrder,
pub scaling: ModeScaling,
}Fields§
§width: W§height: H§refresh_rate: R§format: F§scanline_ordering: ModeScanlineOrder§scaling: ModeScalingImplementations§
Source§impl<W, H, R, F> ModeDesc<W, H, R, F>
impl<W, H, R, F> ModeDesc<W, H, R, F>
pub fn width(self, width: u32) -> ModeDesc<u32, H, R, F>
pub fn height(self, height: u32) -> ModeDesc<W, u32, R, F>
pub fn refresh_rate(self, refresh_rate: Rational) -> ModeDesc<W, H, Rational, F>
pub fn format(self, format: Format) -> ModeDesc<W, H, R, Format>
pub fn scanline_ordering(self, scanline_ordering: ModeScanlineOrder) -> Self
pub fn scaling(self, scaling: ModeScaling) -> Self
Trait Implementations§
Auto Trait Implementations§
impl<W, H, R, F> Freeze for ModeDesc<W, H, R, F>
impl<W, H, R, F> RefUnwindSafe for ModeDesc<W, H, R, F>
impl<W, H, R, F> Send for ModeDesc<W, H, R, F>
impl<W, H, R, F> Sync for ModeDesc<W, H, R, F>
impl<W, H, R, F> Unpin for ModeDesc<W, H, R, F>
impl<W, H, R, F> UnsafeUnpin for ModeDesc<W, H, R, F>
impl<W, H, R, F> UnwindSafe for ModeDesc<W, H, R, F>
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