Trait SingleInstructionSubAssign

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

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

Required Methods§

Source

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

Subtracts 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 SingleInstructionSubAssign for i8

Source§

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

Source§

impl SingleInstructionSubAssign for i16

Source§

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

Source§

impl SingleInstructionSubAssign for i32

Source§

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

Source§

impl SingleInstructionSubAssign for i64

Source§

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

Source§

impl SingleInstructionSubAssign for isize

Source§

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

Source§

impl SingleInstructionSubAssign for u8

Source§

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

Source§

impl SingleInstructionSubAssign for u16

Source§

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

Source§

impl SingleInstructionSubAssign for u32

Source§

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

Source§

impl SingleInstructionSubAssign for u64

Source§

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

Source§

impl SingleInstructionSubAssign for usize

Source§

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

Implementors§