Trait SingleInstructionLoad

Source
pub trait SingleInstructionLoad {
    // Required method
    unsafe fn load(offset: *const Self) -> Self;
}
Expand description

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

Required Methods§

Source

unsafe fn load(offset: *const Self) -> Self

Gets the value of the per-CPU object.

§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 SingleInstructionLoad for bool

Source§

unsafe fn load(offset: *const Self) -> Self

Source§

impl SingleInstructionLoad for i8

Source§

unsafe fn load(offset: *const Self) -> Self

Source§

impl SingleInstructionLoad for i16

Source§

unsafe fn load(offset: *const Self) -> Self

Source§

impl SingleInstructionLoad for i32

Source§

unsafe fn load(offset: *const Self) -> Self

Source§

impl SingleInstructionLoad for i64

Source§

unsafe fn load(offset: *const Self) -> Self

Source§

impl SingleInstructionLoad for isize

Source§

unsafe fn load(offset: *const Self) -> Self

Source§

impl SingleInstructionLoad for u8

Source§

unsafe fn load(offset: *const Self) -> Self

Source§

impl SingleInstructionLoad for u16

Source§

unsafe fn load(offset: *const Self) -> Self

Source§

impl SingleInstructionLoad for u32

Source§

unsafe fn load(offset: *const Self) -> Self

Source§

impl SingleInstructionLoad for u64

Source§

unsafe fn load(offset: *const Self) -> Self

Source§

impl SingleInstructionLoad for usize

Source§

unsafe fn load(offset: *const Self) -> Self

Source§

impl<T> SingleInstructionLoad for *const T

Source§

unsafe fn load(offset: *const Self) -> Self

Source§

impl<T> SingleInstructionLoad for *mut T

Source§

unsafe fn load(offset: *const Self) -> Self

Source§

impl<T, R> SingleInstructionLoad for fn(_: T) -> R

Source§

unsafe fn load(offset: *const Self) -> Self

Implementors§