pub struct MemoryOverallocationBehaviorAMD(_);Expand description
Implementations
sourceimpl MemoryOverallocationBehaviorAMD
impl MemoryOverallocationBehaviorAMD
pub const DEFAULT: MemoryOverallocationBehaviorAMD = Self(0)
pub const ALLOWED: MemoryOverallocationBehaviorAMD = Self(1)
pub const DISALLOWED: MemoryOverallocationBehaviorAMD = Self(2)
Trait Implementations
sourceimpl Clone for MemoryOverallocationBehaviorAMD
impl Clone for MemoryOverallocationBehaviorAMD
sourcefn clone(&self) -> MemoryOverallocationBehaviorAMD
fn clone(&self) -> MemoryOverallocationBehaviorAMD
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 Default for MemoryOverallocationBehaviorAMD
impl Default for MemoryOverallocationBehaviorAMD
sourcefn default() -> MemoryOverallocationBehaviorAMD
fn default() -> MemoryOverallocationBehaviorAMD
Returns the “default value” for a type. Read more
sourceimpl Ord for MemoryOverallocationBehaviorAMD
impl Ord for MemoryOverallocationBehaviorAMD
sourcefn cmp(&self, other: &MemoryOverallocationBehaviorAMD) -> Ordering
fn cmp(&self, other: &MemoryOverallocationBehaviorAMD) -> 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<MemoryOverallocationBehaviorAMD> for MemoryOverallocationBehaviorAMD
impl PartialEq<MemoryOverallocationBehaviorAMD> for MemoryOverallocationBehaviorAMD
sourcefn eq(&self, other: &MemoryOverallocationBehaviorAMD) -> bool
fn eq(&self, other: &MemoryOverallocationBehaviorAMD) -> bool
sourceimpl PartialOrd<MemoryOverallocationBehaviorAMD> for MemoryOverallocationBehaviorAMD
impl PartialOrd<MemoryOverallocationBehaviorAMD> for MemoryOverallocationBehaviorAMD
sourcefn partial_cmp(
&self,
other: &MemoryOverallocationBehaviorAMD
) -> Option<Ordering>
fn partial_cmp(
&self,
other: &MemoryOverallocationBehaviorAMD
) -> 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 MemoryOverallocationBehaviorAMD
impl Eq for MemoryOverallocationBehaviorAMD
impl StructuralEq for MemoryOverallocationBehaviorAMD
impl StructuralPartialEq for MemoryOverallocationBehaviorAMD
Auto Trait Implementations
impl RefUnwindSafe for MemoryOverallocationBehaviorAMD
impl Send for MemoryOverallocationBehaviorAMD
impl Sync for MemoryOverallocationBehaviorAMD
impl Unpin for MemoryOverallocationBehaviorAMD
impl UnwindSafe for MemoryOverallocationBehaviorAMD
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