pub struct GpuBuddyAllocFlags(/* private fields */);Expand description
Modifier flags for GPU buddy allocation.
These flags can be combined with any GpuBuddyAllocMode to control
additional allocation behavior.
Implementations§
Source§impl GpuBuddyAllocFlags
impl GpuBuddyAllocFlags
Sourcepub fn contains(self, flag: GpuBuddyAllocFlag) -> bool
pub fn contains(self, flag: GpuBuddyAllocFlag) -> bool
Checks if a specific flag is set.
Sourcepub fn contains_any(self, flags: GpuBuddyAllocFlags) -> bool
pub fn contains_any(self, flags: GpuBuddyAllocFlags) -> bool
Checks if at least one of the provided flags is set.
Sourcepub fn contains_all(self, flags: GpuBuddyAllocFlags) -> bool
pub fn contains_all(self, flags: GpuBuddyAllocFlags) -> bool
Checks if all of the provided flags are set.
Trait Implementations§
Source§impl BitAnd<GpuBuddyAllocFlag> for GpuBuddyAllocFlags
impl BitAnd<GpuBuddyAllocFlag> for GpuBuddyAllocFlags
Source§type Output = GpuBuddyAllocFlags
type Output = GpuBuddyAllocFlags
The resulting type after applying the
& operator.Source§impl BitAnd for GpuBuddyAllocFlags
impl BitAnd for GpuBuddyAllocFlags
Source§impl BitAndAssign<GpuBuddyAllocFlag> for GpuBuddyAllocFlags
impl BitAndAssign<GpuBuddyAllocFlag> for GpuBuddyAllocFlags
Source§fn bitand_assign(&mut self, rhs: GpuBuddyAllocFlag)
fn bitand_assign(&mut self, rhs: GpuBuddyAllocFlag)
Performs the
&= operation. Read moreSource§impl BitAndAssign for GpuBuddyAllocFlags
impl BitAndAssign for GpuBuddyAllocFlags
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOr<GpuBuddyAllocFlag> for GpuBuddyAllocFlags
impl BitOr<GpuBuddyAllocFlag> for GpuBuddyAllocFlags
Source§type Output = GpuBuddyAllocFlags
type Output = GpuBuddyAllocFlags
The resulting type after applying the
| operator.Source§impl BitOr for GpuBuddyAllocFlags
impl BitOr for GpuBuddyAllocFlags
Source§impl BitOrAssign<GpuBuddyAllocFlag> for GpuBuddyAllocFlags
impl BitOrAssign<GpuBuddyAllocFlag> for GpuBuddyAllocFlags
Source§fn bitor_assign(&mut self, rhs: GpuBuddyAllocFlag)
fn bitor_assign(&mut self, rhs: GpuBuddyAllocFlag)
Performs the
|= operation. Read moreSource§impl BitOrAssign for GpuBuddyAllocFlags
impl BitOrAssign for GpuBuddyAllocFlags
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl BitXor<GpuBuddyAllocFlag> for GpuBuddyAllocFlags
impl BitXor<GpuBuddyAllocFlag> for GpuBuddyAllocFlags
Source§type Output = GpuBuddyAllocFlags
type Output = GpuBuddyAllocFlags
The resulting type after applying the
^ operator.Source§impl BitXor for GpuBuddyAllocFlags
impl BitXor for GpuBuddyAllocFlags
Source§impl BitXorAssign<GpuBuddyAllocFlag> for GpuBuddyAllocFlags
impl BitXorAssign<GpuBuddyAllocFlag> for GpuBuddyAllocFlags
Source§fn bitxor_assign(&mut self, rhs: GpuBuddyAllocFlag)
fn bitxor_assign(&mut self, rhs: GpuBuddyAllocFlag)
Performs the
^= operation. Read moreSource§impl BitXorAssign for GpuBuddyAllocFlags
impl BitXorAssign for GpuBuddyAllocFlags
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^= operation. Read moreSource§impl Clone for GpuBuddyAllocFlags
impl Clone for GpuBuddyAllocFlags
Source§fn clone(&self) -> GpuBuddyAllocFlags
fn clone(&self) -> GpuBuddyAllocFlags
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for GpuBuddyAllocFlags
impl Default for GpuBuddyAllocFlags
Source§fn default() -> GpuBuddyAllocFlags
fn default() -> GpuBuddyAllocFlags
Returns the “default value” for a type. Read more
Source§impl From<GpuBuddyAllocFlag> for GpuBuddyAllocFlags
impl From<GpuBuddyAllocFlag> for GpuBuddyAllocFlags
Source§fn from(value: GpuBuddyAllocFlag) -> Self
fn from(value: GpuBuddyAllocFlag) -> Self
Converts to this type from the input type.
Source§impl From<GpuBuddyAllocFlags> for usize
impl From<GpuBuddyAllocFlags> for usize
Source§fn from(value: GpuBuddyAllocFlags) -> Self
fn from(value: GpuBuddyAllocFlags) -> Self
Converts to this type from the input type.
Source§impl Not for GpuBuddyAllocFlags
impl Not for GpuBuddyAllocFlags
Source§impl PartialEq for GpuBuddyAllocFlags
impl PartialEq for GpuBuddyAllocFlags
impl Copy for GpuBuddyAllocFlags
impl Eq for GpuBuddyAllocFlags
impl StructuralPartialEq for GpuBuddyAllocFlags
Auto Trait Implementations§
impl Freeze for GpuBuddyAllocFlags
impl RefUnwindSafe for GpuBuddyAllocFlags
impl Send for GpuBuddyAllocFlags
impl Sync for GpuBuddyAllocFlags
impl Unpin for GpuBuddyAllocFlags
impl UnsafeUnpin for GpuBuddyAllocFlags
impl UnwindSafe for GpuBuddyAllocFlags
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> PinInit<T> for T
impl<T> PinInit<T> for T
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
Initializes
slot. Read more