[][src]Struct dxplr::dxgi::ModeDesc

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: Wheight: Hrefresh_rate: Rformat: Fscanline_ordering: ModeScanlineOrderscaling: ModeScaling

Methods

impl ModeDesc<(), (), (), ()>[src]

pub fn new() -> Self[src]

impl<W, H, R, F> ModeDesc<W, H, R, F>[src]

pub fn width(self, width: u32) -> ModeDesc<u32, H, R, F>[src]

pub fn height(self, height: u32) -> ModeDesc<W, u32, R, F>[src]

pub fn refresh_rate(self, refresh_rate: Rational) -> ModeDesc<W, H, Rational, F>[src]

pub fn format(self, format: Format) -> ModeDesc<W, H, R, Format>[src]

pub fn scanline_ordering(self, scanline_ordering: ModeScanlineOrder) -> Self[src]

pub fn scaling(self, scaling: ModeScaling) -> Self[src]

Trait Implementations

impl<W: Clone, H: Clone, R: Clone, F: Clone> Clone for ModeDesc<W, H, R, F>[src]

impl<W: Debug, H: Debug, R: Debug, F: Debug> Debug for ModeDesc<W, H, R, F>[src]

impl From<DXGI_MODE_DESC> for ModeDesc<u32, u32, Rational, Format>[src]

Auto Trait Implementations

impl<W, H, R, F> RefUnwindSafe for ModeDesc<W, H, R, F> where
    F: RefUnwindSafe,
    H: RefUnwindSafe,
    R: RefUnwindSafe,
    W: RefUnwindSafe

impl<W, H, R, F> Send for ModeDesc<W, H, R, F> where
    F: Send,
    H: Send,
    R: Send,
    W: Send

impl<W, H, R, F> Sync for ModeDesc<W, H, R, F> where
    F: Sync,
    H: Sync,
    R: Sync,
    W: Sync

impl<W, H, R, F> Unpin for ModeDesc<W, H, R, F> where
    F: Unpin,
    H: Unpin,
    R: Unpin,
    W: Unpin

impl<W, H, R, F> UnwindSafe for ModeDesc<W, H, R, F> where
    F: UnwindSafe,
    H: UnwindSafe,
    R: UnwindSafe,
    W: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.