pub struct SurfaceID(pub usize);
Expand description
A unique ID per allocated surface.
If you destroy a surface and then create a new one, the ID may be reused.
Tuple Fields§
§0: usize
Trait Implementations§
impl Copy for SurfaceID
impl StructuralPartialEq for SurfaceID
Auto Trait Implementations§
impl Freeze for SurfaceID
impl RefUnwindSafe for SurfaceID
impl Send for SurfaceID
impl Sync for SurfaceID
impl Unpin for SurfaceID
impl UnwindSafe for SurfaceID
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)