#[repr(u16)]pub enum MemoryLocationHint {
Unspecified = 0,
HostMemory = 1,
DeviceMemory = 2,
SharedMemory = 3,
RemoteMemory = 4,
MmapFile = 5,
ObjectStore = 6,
}Variants§
Implementations§
Source§impl MemoryLocationHint
impl MemoryLocationHint
pub fn try_from_u16(value: u16) -> Result<Self, NnrpError>
Trait Implementations§
Source§impl Clone for MemoryLocationHint
impl Clone for MemoryLocationHint
Source§fn clone(&self) -> MemoryLocationHint
fn clone(&self) -> MemoryLocationHint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MemoryLocationHint
Source§impl Debug for MemoryLocationHint
impl Debug for MemoryLocationHint
impl Eq for MemoryLocationHint
Source§impl PartialEq for MemoryLocationHint
impl PartialEq for MemoryLocationHint
impl StructuralPartialEq for MemoryLocationHint
Auto Trait Implementations§
impl Freeze for MemoryLocationHint
impl RefUnwindSafe for MemoryLocationHint
impl Send for MemoryLocationHint
impl Sync for MemoryLocationHint
impl Unpin for MemoryLocationHint
impl UnsafeUnpin for MemoryLocationHint
impl UnwindSafe for MemoryLocationHint
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