INNER CODE UNIT · Rust

from

gfx-rs/gfx · src/auxil/external-memory/src/lib.rs:100

    fn from(fd: Fd) -> Self {
        Self::Fd(fd)
    }
}

#[cfg(any(windows,doc))]
impl From<Handle> for PlatformMemory {
    fn from(handle: Handle) -> Self {
        Self::Handle(handle)
    }
}

impl From<Ptr> for PlatformMemory {
    fn from(ptr: Ptr) -> Self {
        Self::Ptr(ptr)
    }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…