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§
source§impl PartialEq for SurfaceID
impl PartialEq for SurfaceID
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