Struct CachePadded
#[repr(align(128))]
pub struct CachePadded<T> { pub(in ::sync::mpmc::utils) value: T }
Pads and aligns a value to the length of a cache line.
Fields
value: T
Implementations
impl<T> CachePadded<T>
fn new(value: T) -> CachePadded<T>Pads and aligns a value to the length of a cache line.
Trait Implementations
impl<T> Deref for CachePadded<T>
type Target = T;fn deref(&self) -> &T
impl<T> DerefMut for CachePadded<T>
fn deref_mut(&mut self) -> &mut T
impl<T: Clone> Clone for CachePadded<T>
fn clone(&self) -> CachePadded<T>
impl<T: Copy> Copy for CachePadded<T>
impl<T: Default> Default for CachePadded<T>
fn default() -> CachePadded<T>
impl<T: Eq> Eq for CachePadded<T>
fn assert_fields_are_eq(&self)
impl<T: Hash> Hash for CachePadded<T>
fn hash<__H: Hasher>(&self, state: &mut __H)
impl<T: PartialEq> PartialEq for CachePadded<T>
fn eq(&self, other: &CachePadded<T>) -> bool
impl<T: PartialEq> StructuralPartialEq for CachePadded<T>
Auto Trait Implementations
impl<T> Freeze for CachePadded<T>
where
T: Freeze,
impl<T> RefUnwindSafe for CachePadded<T>
where
T: RefUnwindSafe,
impl<T> Send for CachePadded<T>
where
T: Send,
impl<T> Sync for CachePadded<T>
where
T: Sync,
impl<T> Unpin for CachePadded<T>
where
T: Unpin,
impl<T> UnsafeUnpin for CachePadded<T>
where
T: UnsafeUnpin,
impl<T> UnwindSafe for CachePadded<T>
where
T: UnwindSafe,
Blanket Implementations
impl<P, T> Receiver for CachePadded<T>
where
P: Deref<Target = T> + ?Sized,
T: ?Sized,
type Target = T;
impl<T> Any for CachePadded<T>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for CachePadded<T>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for CachePadded<T>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for CachePadded<T>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for CachePadded<T>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for CachePadded<T>
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for CachePadded<T>
impl<T> ToOwned for CachePadded<T>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for CachePadded<T>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for CachePadded<T>
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for CachePadded<T>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>