Trait SingleInstructionAddAssign

Source
pub trait SingleInstructionAddAssign<Rhs = Self> {
    // Required method
    unsafe fn add_assign(offset: *mut Self, rhs: Rhs);
}
Expand description

An interface for architecture-specific single-instruction add operation.

Required Methods§

Source

unsafe fn add_assign(offset: *mut Self, rhs: Rhs)

Adds a value to the per-CPU object.

This operation wraps on overflow.

§Safety

Please refer to the module-level documentation of self.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl SingleInstructionAddAssign for i8

Source§

unsafe fn add_assign(offset: *mut Self, val: Self)

Source§

impl SingleInstructionAddAssign for i16

Source§

unsafe fn add_assign(offset: *mut Self, val: Self)

Source§

impl SingleInstructionAddAssign for i32

Source§

unsafe fn add_assign(offset: *mut Self, val: Self)

Source§

impl SingleInstructionAddAssign for i64

Source§

unsafe fn add_assign(offset: *mut Self, val: Self)

Source§

impl SingleInstructionAddAssign for isize

Source§

unsafe fn add_assign(offset: *mut Self, val: Self)

Source§

impl SingleInstructionAddAssign for u8

Source§

unsafe fn add_assign(offset: *mut Self, val: Self)

Source§

impl SingleInstructionAddAssign for u16

Source§

unsafe fn add_assign(offset: *mut Self, val: Self)

Source§

impl SingleInstructionAddAssign for u32

Source§

unsafe fn add_assign(offset: *mut Self, val: Self)

Source§

impl SingleInstructionAddAssign for u64

Source§

unsafe fn add_assign(offset: *mut Self, val: Self)

Source§

impl SingleInstructionAddAssign for usize

Source§

unsafe fn add_assign(offset: *mut Self, val: Self)

Implementors§