Struct sdl2_sys::SDL_atomic_t
source · #[repr(C)]pub struct SDL_atomic_t {
pub value: c_int,
}
Expand description
\brief A type representing an atomic integer value. It is a struct so people don’t accidentally use numeric operations on it.
Fields§
§value: c_int
Trait Implementations§
source§impl Clone for SDL_atomic_t
impl Clone for SDL_atomic_t
source§fn clone(&self) -> SDL_atomic_t
fn clone(&self) -> SDL_atomic_t
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for SDL_atomic_t
Auto Trait Implementations§
impl Freeze for SDL_atomic_t
impl RefUnwindSafe for SDL_atomic_t
impl Send for SDL_atomic_t
impl Sync for SDL_atomic_t
impl Unpin for SDL_atomic_t
impl UnwindSafe for SDL_atomic_t
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