Struct gpu_alloc::AllocationFlags [−][src]
pub struct AllocationFlags { /* fields omitted */ }Expand description
Allocation flags
Implementations
impl AllocationFlags[src]
impl AllocationFlags[src]pub const DEVICE_ADDRESS: AllocationFlags[src]
pub const DEVICE_ADDRESS: AllocationFlags[src]Specifies that the memory can be used for buffers created with flag that allows fetching device address.
pub const fn empty() -> AllocationFlags[src]
pub const fn empty() -> AllocationFlags[src]Returns an empty set of flags
pub const fn all() -> AllocationFlags[src]
pub const fn all() -> AllocationFlags[src]Returns the set containing all flags.
pub fn from_bits(bits: u8) -> Option<AllocationFlags>[src]
pub fn from_bits(bits: u8) -> Option<AllocationFlags>[src]Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub const fn from_bits_truncate(bits: u8) -> AllocationFlags[src]
pub const fn from_bits_truncate(bits: u8) -> AllocationFlags[src]Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub const unsafe fn from_bits_unchecked(bits: u8) -> AllocationFlags[src]
pub const unsafe fn from_bits_unchecked(bits: u8) -> AllocationFlags[src]Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
pub const fn intersects(&self, other: AllocationFlags) -> bool[src]
pub const fn intersects(&self, other: AllocationFlags) -> bool[src]Returns true if there are flags common to both self and other.
pub const fn contains(&self, other: AllocationFlags) -> bool[src]
pub const fn contains(&self, other: AllocationFlags) -> bool[src]Returns true all of the flags in other are contained within self.
pub fn insert(&mut self, other: AllocationFlags)[src]
pub fn insert(&mut self, other: AllocationFlags)[src]Inserts the specified flags in-place.
pub fn remove(&mut self, other: AllocationFlags)[src]
pub fn remove(&mut self, other: AllocationFlags)[src]Removes the specified flags in-place.
pub fn toggle(&mut self, other: AllocationFlags)[src]
pub fn toggle(&mut self, other: AllocationFlags)[src]Toggles the specified flags in-place.
pub fn set(&mut self, other: AllocationFlags, value: bool)[src]
pub fn set(&mut self, other: AllocationFlags, value: bool)[src]Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Binary for AllocationFlags[src]
impl Binary for AllocationFlags[src]impl BitAnd<AllocationFlags> for AllocationFlags[src]
impl BitAnd<AllocationFlags> for AllocationFlags[src]pub fn bitand(self, other: AllocationFlags) -> AllocationFlags[src]
pub fn bitand(self, other: AllocationFlags) -> AllocationFlags[src]Returns the intersection between the two sets of flags.
type Output = AllocationFlags
type Output = AllocationFlagsThe resulting type after applying the & operator.
impl BitAndAssign<AllocationFlags> for AllocationFlags[src]
impl BitAndAssign<AllocationFlags> for AllocationFlags[src]pub fn bitand_assign(&mut self, other: AllocationFlags)[src]
pub fn bitand_assign(&mut self, other: AllocationFlags)[src]Disables all flags disabled in the set.
impl BitOr<AllocationFlags> for AllocationFlags[src]
impl BitOr<AllocationFlags> for AllocationFlags[src]pub fn bitor(self, other: AllocationFlags) -> AllocationFlags[src]
pub fn bitor(self, other: AllocationFlags) -> AllocationFlags[src]Returns the union of the two sets of flags.
type Output = AllocationFlags
type Output = AllocationFlagsThe resulting type after applying the | operator.
impl BitOrAssign<AllocationFlags> for AllocationFlags[src]
impl BitOrAssign<AllocationFlags> for AllocationFlags[src]pub fn bitor_assign(&mut self, other: AllocationFlags)[src]
pub fn bitor_assign(&mut self, other: AllocationFlags)[src]Adds the set of flags.
impl BitXor<AllocationFlags> for AllocationFlags[src]
impl BitXor<AllocationFlags> for AllocationFlags[src]pub fn bitxor(self, other: AllocationFlags) -> AllocationFlags[src]
pub fn bitxor(self, other: AllocationFlags) -> AllocationFlags[src]Returns the left flags, but with all the right flags toggled.
type Output = AllocationFlags
type Output = AllocationFlagsThe resulting type after applying the ^ operator.
impl BitXorAssign<AllocationFlags> for AllocationFlags[src]
impl BitXorAssign<AllocationFlags> for AllocationFlags[src]pub fn bitxor_assign(&mut self, other: AllocationFlags)[src]
pub fn bitxor_assign(&mut self, other: AllocationFlags)[src]Toggles the set of flags.
impl Clone for AllocationFlags[src]
impl Clone for AllocationFlags[src]pub fn clone(&self) -> AllocationFlags[src]
pub fn clone(&self) -> AllocationFlags[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for AllocationFlags[src]
impl Debug for AllocationFlags[src]impl Extend<AllocationFlags> for AllocationFlags[src]
impl Extend<AllocationFlags> for AllocationFlags[src]pub fn extend<T>(&mut self, iterator: T) where
T: IntoIterator<Item = AllocationFlags>, [src]
pub fn extend<T>(&mut self, iterator: T) where
T: IntoIterator<Item = AllocationFlags>, [src]Extends a collection with the contents of an iterator. Read more
fn extend_one(&mut self, item: A)[src]
fn extend_one(&mut self, item: A)[src]extend_one)Extends a collection with exactly one element.
fn extend_reserve(&mut self, additional: usize)[src]
fn extend_reserve(&mut self, additional: usize)[src]extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
impl FromIterator<AllocationFlags> for AllocationFlags[src]
impl FromIterator<AllocationFlags> for AllocationFlags[src]pub fn from_iter<T>(iterator: T) -> AllocationFlags where
T: IntoIterator<Item = AllocationFlags>, [src]
pub fn from_iter<T>(iterator: T) -> AllocationFlags where
T: IntoIterator<Item = AllocationFlags>, [src]Creates a value from an iterator. Read more
impl Hash for AllocationFlags[src]
impl Hash for AllocationFlags[src]impl LowerHex for AllocationFlags[src]
impl LowerHex for AllocationFlags[src]impl Not for AllocationFlags[src]
impl Not for AllocationFlags[src]pub fn not(self) -> AllocationFlags[src]
pub fn not(self) -> AllocationFlags[src]Returns the complement of this set of flags.
type Output = AllocationFlags
type Output = AllocationFlagsThe resulting type after applying the ! operator.
impl Octal for AllocationFlags[src]
impl Octal for AllocationFlags[src]impl Ord for AllocationFlags[src]
impl Ord for AllocationFlags[src]impl PartialEq<AllocationFlags> for AllocationFlags[src]
impl PartialEq<AllocationFlags> for AllocationFlags[src]pub fn eq(&self, other: &AllocationFlags) -> bool[src]
pub fn eq(&self, other: &AllocationFlags) -> bool[src]This method tests for self and other values to be equal, and is used
by ==. Read more
pub fn ne(&self, other: &AllocationFlags) -> bool[src]
pub fn ne(&self, other: &AllocationFlags) -> bool[src]This method tests for !=.
impl PartialOrd<AllocationFlags> for AllocationFlags[src]
impl PartialOrd<AllocationFlags> for AllocationFlags[src]pub fn partial_cmp(&self, other: &AllocationFlags) -> Option<Ordering>[src]
pub fn partial_cmp(&self, other: &AllocationFlags) -> Option<Ordering>[src]This method returns an ordering between self and other values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Sub<AllocationFlags> for AllocationFlags[src]
impl Sub<AllocationFlags> for AllocationFlags[src]pub fn sub(self, other: AllocationFlags) -> AllocationFlags[src]
pub fn sub(self, other: AllocationFlags) -> AllocationFlags[src]Returns the set difference of the two sets of flags.
type Output = AllocationFlags
type Output = AllocationFlagsThe resulting type after applying the - operator.
impl SubAssign<AllocationFlags> for AllocationFlags[src]
impl SubAssign<AllocationFlags> for AllocationFlags[src]pub fn sub_assign(&mut self, other: AllocationFlags)[src]
pub fn sub_assign(&mut self, other: AllocationFlags)[src]Disables all flags enabled in the set.
impl UpperHex for AllocationFlags[src]
impl UpperHex for AllocationFlags[src]impl Copy for AllocationFlags[src]
impl Eq for AllocationFlags[src]
impl StructuralEq for AllocationFlags[src]
impl StructuralPartialEq for AllocationFlags[src]
Auto Trait Implementations
impl RefUnwindSafe for AllocationFlags
impl Send for AllocationFlags
impl Sync for AllocationFlags
impl Unpin for AllocationFlags
impl UnwindSafe for AllocationFlags
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more