INNER CODE UNIT · Rust

fd

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

    pub fn fd(&self)->Option<&Fd> {
        match self {
            Self::Fd(fd)=>Some(fd),
            #[cfg(windows)]
            Self::Handle(_)=>None,
            Self::Ptr(_)=>None,
        }
    }
    #[cfg(any(windows, doc))]
    pub fn handle(&self)->Option<&Handle> {
        match self {
            Self::Handle(handle)=>Some(handle),
            #[cfg(unix)]
            Self::Fd(_)=>None,
            Self::Ptr(_)=>None,
        }
    }
    pub fn ptr(&self)->Option<&Ptr> {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…