#[repr(align(128))]
pub struct CachePadded<T>(_);
Expand description
Pads and aligns data to the length of a cache line.
Pads and aligns a piece of data to the length of a cache line.
use cache_padded::CachePadded;
let padded = CachePadded::new(1);
Returns the inner data.
use cache_padded::CachePadded;
let padded = CachePadded::new(7);
let data = padded.into_inner();
assert_eq!(data, 7);
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
The resulting type after dereferencing.
Mutably dereferences the value.
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
impl<T> Any for T where
    T: 'static + ?Sized, 
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
    U: From<T>, 
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.