Struct gfx::shade::Usage [] [src]

pub struct Usage { /* fields omitted */ }

Parameter usage flags.

Methods

impl Usage
[src]

VERTEX: Usage = Usage{bits: 1,}

GEOMETRY: Usage = Usage{bits: 2,}

PIXEL: Usage = Usage{bits: 4,}

HULL: Usage = Usage{bits: 8,}

DOMAIN: Usage = Usage{bits: 22,}

[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 Usage
[src]

[src]

impl Copy for Usage
[src]

impl Clone for Usage
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl BitAndAssign<Usage> for Usage
[src]

[src]

Disables all flags disabled in the set.

impl BitAnd<Usage> for Usage
[src]

[src]

Returns the intersection between the two sets of flags.

impl UpperHex for Usage
[src]

[src]

impl PartialOrd<Usage> for Usage
[src]

[src]

[src]

[src]

[src]

[src]

impl Not for Usage
[src]

[src]

Returns the complement of this set of flags.

impl Hash for Usage
[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 BitXor<Usage> for Usage
[src]

[src]

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

impl From<Stage> for Usage
[src]

[src]

Performs the conversion.

impl BitOr<Usage> for Usage
[src]

[src]

Returns the union of the two sets of flags.

impl BitOrAssign<Usage> for Usage
[src]

[src]

Adds the set of flags.

impl Octal for Usage
[src]

[src]

impl PartialEq<Usage> for Usage
[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 Usage
[src]

[src]

Formats the value using the given formatter.

impl Extend<Usage> for Usage
[src]

[src]

impl SubAssign<Usage> for Usage
[src]

[src]

Disables all flags enabled in the set.

impl BitXorAssign<Usage> for Usage
[src]

[src]

Toggles the set of flags.

impl Eq for Usage
[src]

impl Binary for Usage
[src]

[src]

impl FromIterator<Usage> for Usage
[src]

[src]

impl LowerHex for Usage
[src]

[src]

impl Sub<Usage> for Usage
[src]

[src]

Returns the set difference of the two sets of flags.