INNER CODE UNIT · Rust
handle
gfx-rs/gfx · src/auxil/external-memory/src/lib.rs:39
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> {
match self {
Self::Ptr(ptr)=>Some(ptr),
#[cfg(unix)]
Self::Fd(_)=>None,
#[cfg(windows)]
Self::Handle(_)=>None
}
}
}