[][src]Struct direct2d::enums::PresentOptions

#[repr(transparent)]
pub struct PresentOptions(pub u32);

Methods

impl PresentOptions[src]

pub const NONE: PresentOptions[src]

pub const RETAIN_CONTENTS: PresentOptions[src]

pub const IMMEDIATELY: PresentOptions[src]

pub fn is_set(self, flags: Self) -> bool[src]

Test whether the given flags are set on this instance. Eqivalent to value & flags == flags.

pub fn clear(&mut self, flags: Self)[src]

Clear the given flags from this instance. Equivalent to value &= !flags;.

pub fn validate(self) -> bool[src]

Checks whether any flags are set in the bitfield representation that don't exist in the enumeration definition. Returns true if only valid flags are set.

Trait Implementations

impl PartialEq<PresentOptions> for PresentOptions[src]

impl Default for PresentOptions[src]

fn default() -> Self[src]

Defaults to no flags being set.

impl Ord for PresentOptions[src]

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl Clone for PresentOptions[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for PresentOptions[src]

impl Copy for PresentOptions[src]

impl PartialOrd<PresentOptions> for PresentOptions[src]

impl Hash for PresentOptions[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Not for PresentOptions[src]

type Output = Self

The resulting type after applying the ! operator.

impl BitAnd<PresentOptions> for PresentOptions[src]

type Output = Self

The resulting type after applying the & operator.

impl BitOr<PresentOptions> for PresentOptions[src]

type Output = Self

The resulting type after applying the | operator.

impl BitXor<PresentOptions> for PresentOptions[src]

type Output = Self

The resulting type after applying the ^ operator.

impl BitAndAssign<PresentOptions> for PresentOptions[src]

impl BitOrAssign<PresentOptions> for PresentOptions[src]

impl BitXorAssign<PresentOptions> for PresentOptions[src]

impl Debug for PresentOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

impl<T> FontKey for T where
    T: Send + Sync + 'static + ?Sized
[src]