pub struct MemoryTypeId(pub usize);
Expand description
A strongly-typed index to a particular MemoryType
.
Tuple Fields§
§0: usize
Trait Implementations§
Source§impl Clone for MemoryTypeId
impl Clone for MemoryTypeId
Source§fn clone(&self) -> MemoryTypeId
fn clone(&self) -> MemoryTypeId
Returns a copy 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 Debug for MemoryTypeId
impl Debug for MemoryTypeId
Source§impl From<usize> for MemoryTypeId
impl From<usize> for MemoryTypeId
Source§impl Hash for MemoryTypeId
impl Hash for MemoryTypeId
Source§impl Ord for MemoryTypeId
impl Ord for MemoryTypeId
Source§fn cmp(&self, other: &MemoryTypeId) -> Ordering
fn cmp(&self, other: &MemoryTypeId) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MemoryTypeId
impl PartialEq for MemoryTypeId
Source§impl PartialOrd for MemoryTypeId
impl PartialOrd for MemoryTypeId
impl Copy for MemoryTypeId
impl Eq for MemoryTypeId
impl StructuralPartialEq for MemoryTypeId
Auto Trait Implementations§
impl Freeze for MemoryTypeId
impl RefUnwindSafe for MemoryTypeId
impl Send for MemoryTypeId
impl Sync for MemoryTypeId
impl Unpin for MemoryTypeId
impl UnwindSafe for MemoryTypeId
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