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]
fn empty() -> Usage.html#43' title='goto source code'>[src]
Returns an empty set of flags.
fn all() -> Usage.html#45-54' title='goto source code'>[src]
Returns the set containing all flags.
fn bits(&self) -> u8.html#56' title='goto source code'>[src]
Returns the raw value of the flags currently stored.
fn from_bits(bits: u8) -> Option<Usage>.html#59-63' 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#66-67' 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#69-70' title='goto source code'>[src]
Returns true if no flags are currently stored.
fn is_all(&self) -> bool.html#72-73' title='goto source code'>[src]
Returns true if all flags are currently set.
fn intersects(&self, other: Usage) -> bool.html#75-76' title='goto source code'>[src]
Returns true if there are flags common to both self and other.
fn contains(&self, other: Usage) -> bool.html#78-79' title='goto source code'>[src]
Returns true all of the flags in other are contained within self.
fn insert(&mut self, other: Usage).html#80-81' title='goto source code'>[src]
Inserts the specified flags in-place.
fn remove(&mut self, other: Usage).html#82-83' title='goto source code'>[src]
Removes the specified flags in-place.
fn toggle(&mut self, other: Usage).html#84-85' title='goto source code'>[src]
Toggles the specified flags in-place.
fn set(&mut self, other: Usage, value: bool).html#87-88' title='goto source code'>[src]
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Ord for Usage.html#5' title='goto source code'>[src]
fn cmp(&self, __arg_0: &Usage) -> Ordering.html#5' title='goto source code'>[src]
impl Hash for Usage.html#5' title='goto source code'>[src]
fn hash<__H>(&self, __arg_0: &mut __H) where
__H: Hasher, .html#5' 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#123-127' title='goto source code'>[src]
type Output = Usage
fn not(self) -> Usage.html#126-127' title='goto source code'>[src]
Returns the complement of this set of flags.
impl Copy for Usage.html#5' title='goto source code'>[src]
impl Clone for Usage.html#5' title='goto source code'>[src]
fn clone(&self) -> Usage.html#5' 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 BitXor<Usage> for Usage.html#96-101' title='goto source code'>[src]
type Output = Usage
fn bitxor(self, other: Usage) -> Usage.html#100-101' 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#89-92' title='goto source code'>[src]
type Output = Usage
fn bitor(self, other: Usage) -> Usage.html#91-92' title='goto source code'>[src]
Returns the union of the two sets of flags.
impl BitOrAssign<Usage> for Usage.html#92-96' title='goto source code'>[src]
fn bitor_assign(&mut self, other: Usage).html#95-96' title='goto source code'>[src]
Adds the set of flags.
impl BitAndAssign<Usage> for Usage.html#110-114' title='goto source code'>[src]
fn bitand_assign(&mut self, other: Usage).html#113-114' title='goto source code'>[src]
Disables all flags disabled in the set.
impl PartialEq<Usage> for Usage.html#5' title='goto source code'>[src]
fn eq(&self, __arg_0: &Usage) -> bool.html#5' 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#5' title='goto source code'>[src]
This method tests for !=.
impl Debug for Usage.html#23-40' title='goto source code'>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>.html#24-40' title='goto source code'>[src]
Formats the value using the given formatter.
impl Extend<Usage> for Usage.html#127-131' title='goto source code'>[src]
fn extend<T>(&mut self, iterator: T) where
T: IntoIterator<Item = Usage>, .html#129-131' title='goto source code'>[src]
T: IntoIterator<Item = Usage>,
impl SubAssign<Usage> for Usage.html#119-123' title='goto source code'>[src]
fn sub_assign(&mut self, other: Usage).html#122-123' title='goto source code'>[src]
Disables all flags enabled in the set.
impl BitAnd<Usage> for Usage.html#105-110' title='goto source code'>[src]
type Output = Usage
fn bitand(self, other: Usage) -> Usage.html#109-110' title='goto source code'>[src]
Returns the intersection between the two sets of flags.
impl BitXorAssign<Usage> for Usage.html#101-105' title='goto source code'>[src]
fn bitxor_assign(&mut self, other: Usage).html#104-105' title='goto source code'>[src]
Toggles the set of flags.
impl Eq for Usage.html#5' title='goto source code'>[src]
impl FromIterator<Usage> for Usage.html#131-136' title='goto source code'>[src]
fn from_iter<T>(iterator: T) -> Usage where
T: IntoIterator<Item = Usage>, .html#133-135' title='goto source code'>[src]
T: IntoIterator<Item = Usage>,
impl Sub<Usage> for Usage.html#114-119' title='goto source code'>[src]
type Output = Usage
fn sub(self, other: Usage) -> Usage.html#118-119' title='goto source code'>[src]
Returns the set difference of the two sets of flags.