Struct gfx::state::ColorMask [] [src]

pub struct ColorMask { /* fields omitted */ }

Methods

impl ColorMask
[src]

[src]

Returns an empty set of flags.

[src]

Returns the set containing all flags.

[src]

Returns the raw value of the flags currently stored.

[src]

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

[src]

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

[src]

Returns true if no flags are currently stored.

[src]

Returns true if all flags are currently set.

[src]

Returns true if there are flags common to both self and other.

[src]

Returns true all of the flags in other are contained within self.

[src]

Inserts the specified flags in-place.

[src]

Removes the specified flags in-place.

[src]

Toggles the specified flags in-place.

[src]

Inserts or removes the specified flags depending on the passed value.

Trait Implementations

impl Ord for ColorMask
[src]

[src]

impl Copy for ColorMask
[src]

impl Hash for ColorMask
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

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

impl Not for ColorMask
[src]

[src]

Returns the complement of this set of flags.

impl BitXorAssign<ColorMask> for ColorMask
[src]

[src]

Toggles the set of flags.

impl Clone for ColorMask
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for ColorMask
[src]

impl BitXor<ColorMask> for ColorMask
[src]

[src]

Returns the left flags, but with all the right flags toggled.

impl BitOr<ColorMask> for ColorMask
[src]

[src]

Returns the union of the two sets of flags.

impl BitOrAssign<ColorMask> for ColorMask
[src]

[src]

Adds the set of flags.

impl BitAndAssign<ColorMask> for ColorMask
[src]

[src]

Disables all flags disabled in the set.

impl PartialEq<ColorMask> for ColorMask
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Debug for ColorMask
[src]

[src]

Formats the value using the given formatter.

impl Extend<ColorMask> for ColorMask
[src]

[src]

impl FromIterator<ColorMask> for ColorMask
[src]

[src]

impl SubAssign<ColorMask> for ColorMask
[src]

[src]

Disables all flags enabled in the set.

impl Sub<ColorMask> for ColorMask
[src]

[src]

Returns the set difference of the two sets of flags.

impl PartialOrd<ColorMask> for ColorMask
[src]

[src]

[src]

[src]

[src]

[src]

impl BitAnd<ColorMask> for ColorMask
[src]

[src]

Returns the intersection between the two sets of flags.