INNER CODE UNIT · Rust
from
gfx-rs/gfx · src/auxil/external-memory/src/lib.rs:107
fn from(handle: Handle) -> Self {
Self::Handle(handle)
}
}
impl From<Ptr> for PlatformMemory {
fn from(ptr: Ptr) -> Self {
Self::Ptr(ptr)
}
}
/// Representation of os specific memory types.
pub enum PlatformMemoryType {
#[cfg(any(unix, doc))]
Fd,
#[cfg(any(windows, doc))]
Handle,
Ptr,