Struct gfx::memory::Access
[−]
[src]
pub struct Access { /* fields omitted */ }
Flags providing information about the type of memory access to a resource.
An Access
value can be a combination of the the following bit patterns:
This information is used to create resources (see gfx::Factory).
Methods
impl Access
[src]
const READ: Access
READ: Access = Access{bits: 1,}
const WRITE: Access
WRITE: Access = Access{bits: 2,}
const RW: Access
RW: Access = Access{bits: 3,}
fn empty() -> Access
[src]
Returns an empty set of flags.
fn all() -> Access
[src]
Returns the set containing all flags.
fn bits(&self) -> u8
[src]
Returns the raw value of the flags currently stored.
fn from_bits(bits: u8) -> Option<Access>
[src]
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
fn from_bits_truncate(bits: u8) -> Access
[src]
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
fn is_empty(&self) -> bool
[src]
Returns true
if no flags are currently stored.
fn is_all(&self) -> bool
[src]
Returns true
if all flags are currently set.
fn intersects(&self, other: Access) -> bool
[src]
Returns true
if there are flags common to both self
and other
.
fn contains(&self, other: Access) -> bool
[src]
Returns true
all of the flags in other
are contained within self
.
fn insert(&mut self, other: Access)
[src]
Inserts the specified flags in-place.
fn remove(&mut self, other: Access)
[src]
Removes the specified flags in-place.
fn toggle(&mut self, other: Access)
[src]
Toggles the specified flags in-place.
fn set(&mut self, other: Access, value: bool)
[src]
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Ord for Access
[src]
impl Copy for Access
[src]
impl Clone for Access
[src]
fn clone(&self) -> Access
[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<Access> for Access
[src]
fn bitand_assign(&mut self, other: Access)
[src]
Disables all flags disabled in the set.
impl BitAnd<Access> for Access
[src]
type Output = Access
fn bitand(self, other: Access) -> Access
[src]
Returns the intersection between the two sets of flags.
impl UpperHex for Access
[src]
impl PartialOrd<Access> for Access
[src]
fn partial_cmp(&self, __arg_0: &Access) -> Option<Ordering>
[src]
fn lt(&self, __arg_0: &Access) -> bool
[src]
fn le(&self, __arg_0: &Access) -> bool
[src]
fn gt(&self, __arg_0: &Access) -> bool
[src]
fn ge(&self, __arg_0: &Access) -> bool
[src]
impl Hash for Access
[src]
fn hash<__H>(&self, __arg_0: &mut __H) where
__H: Hasher,
[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 Access
[src]
impl BitXor<Access> for Access
[src]
type Output = Access
fn bitxor(self, other: Access) -> Access
[src]
Returns the left flags, but with all the right flags toggled.
impl BitOr<Access> for Access
[src]
type Output = Access
fn bitor(self, other: Access) -> Access
[src]
Returns the union of the two sets of flags.
impl BitOrAssign<Access> for Access
[src]
fn bitor_assign(&mut self, other: Access)
[src]
Adds the set of flags.
impl Octal for Access
[src]
impl PartialEq<Access> for Access
[src]
fn eq(&self, __arg_0: &Access) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Access) -> bool
[src]
This method tests for !=
.
impl Debug for Access
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter.
impl Extend<Access> for Access
[src]
fn extend<T>(&mut self, iterator: T) where
T: IntoIterator<Item = Access>,
[src]
T: IntoIterator<Item = Access>,
impl SubAssign<Access> for Access
[src]
fn sub_assign(&mut self, other: Access)
[src]
Disables all flags enabled in the set.
impl BitXorAssign<Access> for Access
[src]
fn bitxor_assign(&mut self, other: Access)
[src]
Toggles the set of flags.
impl Eq for Access
[src]
impl Binary for Access
[src]
impl FromIterator<Access> for Access
[src]
fn from_iter<T>(iterator: T) -> Access where
T: IntoIterator<Item = Access>,
[src]
T: IntoIterator<Item = Access>,