[go: up one dir, main page]

Struct gfx::shade::core::Usage [] .html#6' title='goto source code'>[src]

pub struct Usage { /* fields omitted */ }

Parameter usage flags.

Methods

impl Usage
.html#41-88' title='goto source code'>[src]

Returns an empty set of flags.

Returns the set containing all flags.

Returns the raw value of the flags currently stored.

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

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

Returns true if no flags are currently stored.

Returns true if all flags are currently set.

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

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

Inserts the specified flags in-place.

Removes the specified flags in-place.

Toggles the specified flags in-place.

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

Trait Implementations

impl Extend<Usage> for Usage
.html#127-131' title='goto source code'>[src]

impl PartialOrd<Usage> for Usage
.html#5' title='goto source code'>[src]

impl BitOr<Usage> for Usage
.html#89-92' title='goto source code'>[src]

Returns the union of the two sets of flags.

impl Copy for Usage
.html#5' title='goto source code'>[src]

impl Ord for Usage
.html#5' title='goto source code'>[src]

impl BitXorAssign<Usage> for Usage
.html#101-105' title='goto source code'>[src]

Toggles the set of flags.

impl BitOrAssign<Usage> for Usage
.html#92-96' title='goto source code'>[src]

Adds the set of flags.

impl PartialEq<Usage> for Usage
.html#5' title='goto source code'>[src]

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

This method tests for !=.

impl Sub<Usage> for Usage
.html#114-119' title='goto source code'>[src]

Returns the set difference of the two sets of flags.

impl BitAnd<Usage> for Usage
.html#105-110' title='goto source code'>[src]

Returns the intersection between the two sets of flags.

impl From<Stage> for Usage
[src]

Performs the conversion.

impl BitXor<Usage> for Usage
.html#96-101' title='goto source code'>[src]

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

impl Eq for Usage
.html#5' title='goto source code'>[src]

impl SubAssign<Usage> for Usage
.html#119-123' title='goto source code'>[src]

Disables all flags enabled in the set.

impl FromIterator<Usage> for Usage
.html#131-136' title='goto source code'>[src]

impl Hash for Usage
.html#5' title='goto source code'>[src]

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

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

impl BitAndAssign<Usage> for Usage
.html#110-114' title='goto source code'>[src]

Disables all flags disabled in the set.

impl Not for Usage
.html#123-127' title='goto source code'>[src]

Returns the complement of this set of flags.

impl Debug for Usage
.html#23-40' title='goto source code'>[src]

Formats the value using the given formatter.

impl Clone for Usage
.html#5' title='goto source code'>[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more