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
sourceimpl Clone for SDL_atomic_t
impl Clone for SDL_atomic_t
sourcefn clone(&self) -> SDL_atomic_t
fn clone(&self) -> SDL_atomic_t
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for SDL_atomic_t
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more