pub enum PlatformMemory {
Fd(Fd),
Ptr(Ptr),
}
Expand description
Representation of an os specific memory.
Variants§
Implementations§
Trait Implementations§
Source§impl From<Fd> for PlatformMemory
impl From<Fd> for PlatformMemory
Source§fn from(fd: Fd) -> PlatformMemory
fn from(fd: Fd) -> PlatformMemory
Converts to this type from the input type.
Source§impl From<Ptr> for PlatformMemory
impl From<Ptr> for PlatformMemory
Source§fn from(ptr: Ptr) -> PlatformMemory
fn from(ptr: Ptr) -> PlatformMemory
Converts to this type from the input type.
Source§impl TryInto<Fd> for PlatformMemory
impl TryInto<Fd> for PlatformMemory
Auto Trait Implementations§
impl Freeze for PlatformMemory
impl RefUnwindSafe for PlatformMemory
impl !Send for PlatformMemory
impl !Sync for PlatformMemory
impl Unpin for PlatformMemory
impl UnwindSafe for PlatformMemory
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