#[repr(C, packed(1))]pub struct CustomAtom<const N: usize> {
pub atom_type: u8,
pub data: [u8; N],
}
Fields§
§atom_type: u8
§data: [u8; N]
Trait Implementations§
Source§impl<const N: usize> Clone for CustomAtom<N>
impl<const N: usize> Clone for CustomAtom<N>
Source§fn clone(&self) -> CustomAtom<N>
fn clone(&self) -> CustomAtom<N>
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<const N: usize> Debug for CustomAtom<N>
impl<const N: usize> Debug for CustomAtom<N>
Source§impl<const N: usize> Display for CustomAtom<N>
impl<const N: usize> Display for CustomAtom<N>
impl<const N: usize> Copy for CustomAtom<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for CustomAtom<N>
impl<const N: usize> RefUnwindSafe for CustomAtom<N>
impl<const N: usize> Send for CustomAtom<N>
impl<const N: usize> Sync for CustomAtom<N>
impl<const N: usize> Unpin for CustomAtom<N>
impl<const N: usize> UnwindSafe for CustomAtom<N>
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