#[repr(C)]pub struct Padded<T, const WIDTH: usize> { /* private fields */ }Implementations§
source§impl<T, const WIDTH: usize> Padded<T, WIDTH>
impl<T, const WIDTH: usize> Padded<T, WIDTH>
pub const fn new(value: T) -> Self
pub const fn into_inner(self) -> T
pub const fn borrow(&self) -> &T
pub const fn borrow_mut(&mut self) -> &mut T
Trait Implementations§
source§impl<T, const WIDTH: usize> BorrowMut<T> for Padded<T, WIDTH>
impl<T, const WIDTH: usize> BorrowMut<T> for Padded<T, WIDTH>
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T, const WIDTH: usize> Ord for Padded<T, WIDTH>where
T: Ord,
impl<T, const WIDTH: usize> Ord for Padded<T, WIDTH>where
T: Ord,
source§impl<T, const WIDTH: usize> PartialEq for Padded<T, WIDTH>where
T: PartialEq,
impl<T, const WIDTH: usize> PartialEq for Padded<T, WIDTH>where
T: PartialEq,
source§impl<T, const WIDTH: usize> PartialOrd<T> for Padded<T, WIDTH>where
T: PartialOrd,
impl<T, const WIDTH: usize> PartialOrd<T> for Padded<T, WIDTH>where
T: PartialOrd,
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl<T, const WIDTH: usize> PartialOrd for Padded<T, WIDTH>where
T: PartialOrd,
impl<T, const WIDTH: usize> PartialOrd for Padded<T, WIDTH>where
T: PartialOrd,
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl<T, const WIDTH: usize> Eq for Padded<T, WIDTH>where
T: Eq,
Auto Trait Implementations§
impl<T, const WIDTH: usize> RefUnwindSafe for Padded<T, WIDTH>where
T: RefUnwindSafe,
impl<T, const WIDTH: usize> Send for Padded<T, WIDTH>where
T: Send,
impl<T, const WIDTH: usize> Sync for Padded<T, WIDTH>where
T: Sync,
impl<T, const WIDTH: usize> Unpin for Padded<T, WIDTH>where
T: Unpin,
impl<T, const WIDTH: usize> UnwindSafe for Padded<T, WIDTH>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