pub struct SystemAllocationScope(_);Expand description
Implementations
sourceimpl SystemAllocationScope
impl SystemAllocationScope
pub const COMMAND: SystemAllocationScope = Self(0)
pub const OBJECT: SystemAllocationScope = Self(1)
pub const CACHE: SystemAllocationScope = Self(2)
pub const DEVICE: SystemAllocationScope = Self(3)
pub const INSTANCE: SystemAllocationScope = Self(4)
Trait Implementations
sourceimpl Clone for SystemAllocationScope
impl Clone for SystemAllocationScope
sourcefn clone(&self) -> SystemAllocationScope
fn clone(&self) -> SystemAllocationScope
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for SystemAllocationScope
impl Debug for SystemAllocationScope
sourceimpl Default for SystemAllocationScope
impl Default for SystemAllocationScope
sourcefn default() -> SystemAllocationScope
fn default() -> SystemAllocationScope
Returns the “default value” for a type. Read more
sourceimpl Hash for SystemAllocationScope
impl Hash for SystemAllocationScope
sourceimpl Ord for SystemAllocationScope
impl Ord for SystemAllocationScope
sourcefn cmp(&self, other: &SystemAllocationScope) -> Ordering
fn cmp(&self, other: &SystemAllocationScope) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Selfwhere
Self: Sized,
const fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Selfwhere
Self: Sized,
const fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<SystemAllocationScope> for SystemAllocationScope
impl PartialEq<SystemAllocationScope> for SystemAllocationScope
sourcefn eq(&self, other: &SystemAllocationScope) -> bool
fn eq(&self, other: &SystemAllocationScope) -> bool
sourceimpl PartialOrd<SystemAllocationScope> for SystemAllocationScope
impl PartialOrd<SystemAllocationScope> for SystemAllocationScope
sourcefn partial_cmp(&self, other: &SystemAllocationScope) -> Option<Ordering>
fn partial_cmp(&self, other: &SystemAllocationScope) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for SystemAllocationScope
impl Eq for SystemAllocationScope
impl StructuralEq for SystemAllocationScope
impl StructuralPartialEq for SystemAllocationScope
Auto Trait Implementations
impl RefUnwindSafe for SystemAllocationScope
impl Send for SystemAllocationScope
impl Sync for SystemAllocationScope
impl Unpin for SystemAllocationScope
impl UnwindSafe for SystemAllocationScope
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more