Struct AlignedArray

Source
pub struct AlignedArray<const B: usize, T, DATA> {
    pub bytes: DATA,
    /* private fields */
}

Fields§

§bytes: DATA

Implementations§

Source§

impl<'data, const B: usize, DATA> AlignedArray<B, u32, DATA>
where DATA: AsData<Data = &'data [u8; B]>,

Source

pub const LEN: usize

Source

pub const fn new(bytes: DATA) -> Self

Source

pub fn get(&self, index: usize) -> Option<u32>

Trait Implementations§

Source§

impl<'data, const B: usize, DATA> AccessSeq<'data> for AlignedArray<B, u32, DATA>
where DATA: AsData<Data = &'data [u8; B]>,

Source§

const LEN: usize = AlignedArray<B, u32, DATA>::LEN

Source§

type Item = u32

Source§

fn index(&self, index: usize) -> Self::Item

Source§

impl<const B: usize, T: Clone, DATA: Clone> Clone for AlignedArray<B, T, DATA>

Source§

fn clone(&self) -> AlignedArray<B, T, DATA>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<const B: usize, T: Copy, DATA: Copy> Copy for AlignedArray<B, T, DATA>

Auto Trait Implementations§

§

impl<const B: usize, T, DATA> Freeze for AlignedArray<B, T, DATA>
where DATA: Freeze,

§

impl<const B: usize, T, DATA> RefUnwindSafe for AlignedArray<B, T, DATA>
where DATA: RefUnwindSafe, T: RefUnwindSafe,

§

impl<const B: usize, T, DATA> Send for AlignedArray<B, T, DATA>
where DATA: Send, T: Send,

§

impl<const B: usize, T, DATA> Sync for AlignedArray<B, T, DATA>
where DATA: Sync, T: Sync,

§

impl<const B: usize, T, DATA> Unpin for AlignedArray<B, T, DATA>
where DATA: Unpin, T: Unpin,

§

impl<const B: usize, T, DATA> UnwindSafe for AlignedArray<B, T, DATA>
where DATA: UnwindSafe, T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<'data, K> MapStore<'data> for K
where K: AccessSeq<'data>,

Source§

const LEN: usize = const LEN: usize = K::LEN;

Source§

type Key = <K as AccessSeq<'data>>::Item

Source§

type Value = usize

Source§

fn get_key(&self, index: usize) -> <K as MapStore<'data>>::Key

Source§

fn get_value(&self, index: usize) -> <K as MapStore<'data>>::Value

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.