Struct gfx::shade::core::Usage
[−]
[src]
pub struct Usage { // some fields omitted }
Parameter usage flags.
Methods
impl Usage
fn empty() -> Usage
Returns an empty set of flags.
fn all() -> Usage
Returns the set containing all flags.
fn bits(&self) -> u8
Returns the raw value of the flags currently stored.
fn from_bits(bits: u8) -> Option<Usage>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
fn from_bits_truncate(bits: u8) -> Usage
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
fn is_all(&self) -> bool
Returns true
if all flags are currently set.
fn intersects(&self, other: Usage) -> bool
Returns true
if there are flags common to both self
and other
.
fn contains(&self, other: Usage) -> bool
Returns true
all of the flags in other
are contained within self
.
fn insert(&mut self, other: Usage)
Inserts the specified flags in-place.
fn remove(&mut self, other: Usage)
Removes the specified flags in-place.
fn toggle(&mut self, other: Usage)
Toggles the specified flags in-place.
Trait Implementations
impl Hash for Usage
impl Ord for Usage
impl PartialOrd<Usage> for Usage
fn partial_cmp(&self, __arg_0: &Usage) -> Option<Ordering>
fn lt(&self, __arg_0: &Usage) -> bool
fn le(&self, __arg_0: &Usage) -> bool
fn gt(&self, __arg_0: &Usage) -> bool
fn ge(&self, __arg_0: &Usage) -> bool
impl Clone for Usage
fn clone(&self) -> Usage
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Eq for Usage
impl PartialEq<Usage> for Usage
fn eq(&self, __arg_0: &Usage) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Usage) -> bool
This method tests for !=
.
impl Copy for Usage
impl Debug for Usage
impl BitOr<Usage> for Usage
type Output = Usage
fn bitor(self, other: Usage) -> Usage
Returns the union of the two sets of flags.
impl BitOrAssign<Usage> for Usage
fn bitor_assign(&mut self, other: Usage)
Adds the set of flags.
impl BitXor<Usage> for Usage
type Output = Usage
fn bitxor(self, other: Usage) -> Usage
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign<Usage> for Usage
fn bitxor_assign(&mut self, other: Usage)
Toggles the set of flags.
impl BitAnd<Usage> for Usage
type Output = Usage
fn bitand(self, other: Usage) -> Usage
Returns the intersection between the two sets of flags.
impl BitAndAssign<Usage> for Usage
fn bitand_assign(&mut self, other: Usage)
Disables all flags disabled in the set.
impl Sub<Usage> for Usage
type Output = Usage
fn sub(self, other: Usage) -> Usage
Returns the set difference of the two sets of flags.
impl SubAssign<Usage> for Usage
fn sub_assign(&mut self, other: Usage)
Disables all flags enabled in the set.