[go: up one dir, main page]

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

pub struct Usage { /* fields omitted */ }

Parameter usage flags.

Methods

impl Usage
.html#38-86' title='goto source code'>[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,}

.html#42' title='goto source code'>[src]

Returns an empty set of flags.

.html#44-52' title='goto source code'>[src]

Returns the set containing all flags.

.html#54' title='goto source code'>[src]

Returns the raw value of the flags currently stored.

.html#57-61' title='goto source code'>[src]

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

.html#64-65' title='goto source code'>[src]

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

.html#67-68' title='goto source code'>[src]

Returns true if no flags are currently stored.

.html#70-71' title='goto source code'>[src]

Returns true if all flags are currently set.

.html#73-74' title='goto source code'>[src]

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

.html#76-77' title='goto source code'>[src]

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

.html#78-79' title='goto source code'>[src]

Inserts the specified flags in-place.

.html#80-81' title='goto source code'>[src]

Removes the specified flags in-place.

.html#82-83' title='goto source code'>[src]

Toggles the specified flags in-place.

.html#85-86' title='goto source code'>[src]

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

Trait Implementations

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

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

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

.html#7' title='goto source code'>[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
.html#108-112' title='goto source code'>[src]

.html#111-112' title='goto source code'>[src]

Disables all flags disabled in the set.

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

.html#107-108' title='goto source code'>[src]

Returns the intersection between the two sets of flags.

impl UpperHex for Usage
.html#33-37' title='goto source code'>[src]

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

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

.html#7' title='goto source code'>[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 Usage
.html#121-125' title='goto source code'>[src]

.html#124-125' title='goto source code'>[src]

Returns the complement of this set of flags.

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

.html#98-99' title='goto source code'>[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
.html#87-90' title='goto source code'>[src]

.html#89-90' title='goto source code'>[src]

Returns the union of the two sets of flags.

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

.html#93-94' title='goto source code'>[src]

Adds the set of flags.

impl Octal for Usage
.html#25-29' title='goto source code'>[src]

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

.html#7' title='goto source code'>[src]

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

.html#7' title='goto source code'>[src]

This method tests for !=.

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

.html#7-21' title='goto source code'>[src]

Formats the value using the given formatter.

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

.html#127-129' title='goto source code'>[src]

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

.html#120-121' title='goto source code'>[src]

Disables all flags enabled in the set.

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

.html#102-103' title='goto source code'>[src]

Toggles the set of flags.

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

impl Binary for Usage
.html#21-25' title='goto source code'>[src]

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

.html#131-133' title='goto source code'>[src]

impl LowerHex for Usage
.html#29-33' title='goto source code'>[src]

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

.html#116-117' title='goto source code'>[src]

Returns the set difference of the two sets of flags.