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]
const VERTEX: Usage
VERTEX: Usage = Usage{bits: 1,}
const GEOMETRY: Usage
GEOMETRY: Usage = Usage{bits: 2,}
const PIXEL: Usage
PIXEL: Usage = Usage{bits: 4,}
const HULL: Usage
HULL: Usage = Usage{bits: 8,}
const DOMAIN: Usage
DOMAIN: Usage = Usage{bits: 22,}
fn empty() -> Usage.html#42' title='goto source code'>[src]
Returns an empty set of flags.
fn all() -> Usage.html#44-52' title='goto source code'>[src]
Returns the set containing all flags.
fn bits(&self) -> u8.html#54' title='goto source code'>[src]
Returns the raw value of the flags currently stored.
fn from_bits(bits: u8) -> Option<Usage>.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.
fn from_bits_truncate(bits: u8) -> Usage.html#64-65' title='goto source code'>[src]
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
fn is_empty(&self) -> bool.html#67-68' title='goto source code'>[src]
Returns true if no flags are currently stored.
fn is_all(&self) -> bool.html#70-71' title='goto source code'>[src]
Returns true if all flags are currently set.
fn intersects(&self, other: Usage) -> bool.html#73-74' title='goto source code'>[src]
Returns true if there are flags common to both self and other.
fn contains(&self, other: Usage) -> bool.html#76-77' title='goto source code'>[src]
Returns true all of the flags in other are contained within self.
fn insert(&mut self, other: Usage).html#78-79' title='goto source code'>[src]
Inserts the specified flags in-place.
fn remove(&mut self, other: Usage).html#80-81' title='goto source code'>[src]
Removes the specified flags in-place.
fn toggle(&mut self, other: Usage).html#82-83' title='goto source code'>[src]
Toggles the specified flags in-place.
fn set(&mut self, other: Usage, value: bool).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]
fn cmp(&self, __arg_0: &Usage) -> Ordering.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]
fn clone(&self) -> Usage.html#7' title='goto source code'>[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl BitAndAssign<Usage> for Usage.html#108-112' title='goto source code'>[src]
fn bitand_assign(&mut self, other: Usage).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]
type Output = Usage
fn bitand(self, other: Usage) -> Usage.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]
fn partial_cmp(&self, __arg_0: &Usage) -> Option<Ordering>.html#7' title='goto source code'>[src]
fn lt(&self, __arg_0: &Usage) -> bool.html#7' title='goto source code'>[src]
fn le(&self, __arg_0: &Usage) -> bool.html#7' title='goto source code'>[src]
fn gt(&self, __arg_0: &Usage) -> bool.html#7' title='goto source code'>[src]
fn ge(&self, __arg_0: &Usage) -> bool.html#7' title='goto source code'>[src]
impl Hash for Usage.html#7' title='goto source code'>[src]
fn hash<__H>(&self, __arg_0: &mut __H) where
__H: Hasher, .html#7' title='goto source code'>[src]
__H: Hasher,
Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more
impl Not for Usage.html#121-125' title='goto source code'>[src]
type Output = Usage
fn not(self) -> Usage.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]
type Output = Usage
fn bitxor(self, other: Usage) -> Usage.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]
impl BitOr<Usage> for Usage.html#87-90' title='goto source code'>[src]
type Output = Usage
fn bitor(self, other: Usage) -> Usage.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]
fn bitor_assign(&mut self, other: Usage).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]
fn eq(&self, __arg_0: &Usage) -> bool.html#7' title='goto source code'>[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Usage) -> bool.html#7' title='goto source code'>[src]
This method tests for !=.
impl Debug for Usage.html#6-21' title='goto source code'>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>.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]
fn extend<T>(&mut self, iterator: T) where
T: IntoIterator<Item = Usage>, .html#127-129' title='goto source code'>[src]
T: IntoIterator<Item = Usage>,
impl SubAssign<Usage> for Usage.html#117-121' title='goto source code'>[src]
fn sub_assign(&mut self, other: Usage).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]
fn bitxor_assign(&mut self, other: Usage).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]
fn from_iter<T>(iterator: T) -> Usage where
T: IntoIterator<Item = Usage>, .html#131-133' title='goto source code'>[src]
T: IntoIterator<Item = Usage>,