#[repr(align(64))]pub struct HermeticPadding<T> { /* private fields */ }Expand description
Applies padding hermetically detected by cuneiform.
If OS exposes an API to detect coherence line size this padding type is using that amount to align the field with padding.
Implementations§
Source§impl<T> HermeticPadding<T>
impl<T> HermeticPadding<T>
Sourcepub fn new(t: T) -> HermeticPadding<T>
pub fn new(t: T) -> HermeticPadding<T>
Applies padding hermetically detected by cuneiform.
§Examples
use cuneiform_fields::hermetic::HermeticPadding;
let padded = HermeticPadding::new(1);Sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Returns the inner value.
§Examples
use cuneiform_fields::hermetic::HermeticPadding;
let padded = HermeticPadding::new(7);
let value = padded.into_inner();
assert_eq!(value, 7);Trait Implementations§
Source§impl<T: Clone> Clone for HermeticPadding<T>
impl<T: Clone> Clone for HermeticPadding<T>
Source§fn clone(&self) -> HermeticPadding<T>
fn clone(&self) -> HermeticPadding<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Debug> Debug for HermeticPadding<T>
impl<T: Debug> Debug for HermeticPadding<T>
Source§impl<T: Default> Default for HermeticPadding<T>
impl<T: Default> Default for HermeticPadding<T>
Source§fn default() -> HermeticPadding<T>
fn default() -> HermeticPadding<T>
Returns the “default value” for a type. Read more
Source§impl<T> Deref for HermeticPadding<T>
impl<T> Deref for HermeticPadding<T>
Source§impl<T> DerefMut for HermeticPadding<T>
impl<T> DerefMut for HermeticPadding<T>
Source§impl<T> From<T> for HermeticPadding<T>
impl<T> From<T> for HermeticPadding<T>
Source§impl<T: Hash> Hash for HermeticPadding<T>
impl<T: Hash> Hash for HermeticPadding<T>
Source§impl<T: PartialEq> PartialEq for HermeticPadding<T>
impl<T: PartialEq> PartialEq for HermeticPadding<T>
impl<T: Copy> Copy for HermeticPadding<T>
impl<T: Eq> Eq for HermeticPadding<T>
impl<T: Send> Send for HermeticPadding<T>
impl<T> StructuralPartialEq for HermeticPadding<T>
impl<T: Sync> Sync for HermeticPadding<T>
Auto Trait Implementations§
impl<T> Freeze for HermeticPadding<T>where
T: Freeze,
impl<T> RefUnwindSafe for HermeticPadding<T>where
T: RefUnwindSafe,
impl<T> Unpin for HermeticPadding<T>where
T: Unpin,
impl<T> UnwindSafe for HermeticPadding<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more