[−][src]Struct voladdress::write_only::WOVolBlock
A block of addresses all in a row, write only.
- The
C
parameter is the element count of the block.
Methods
impl<T, const COUNT: usize> WOVolBlock<T, COUNT>
[src]
pub const unsafe fn new(address: usize) -> Self
[src]
Constructs a new WOVolBlock
.
Safety
The given address must be a valid WOVolAddress
at each position in the
block for however many slots (C
).
pub const fn len(self) -> usize
[src]
The length of this block (in elements)
ⓘImportant traits for WOVolIter<T>pub const fn iter(self) -> WOVolIter<T>
[src]
ⓘImportant traits for WOVolIter<T>
Gives an iterator over the slots of this block.
pub const unsafe fn index_unchecked(self, slot: usize) -> WOVolAddress<T>
[src]
pub fn index(self, slot: usize) -> WOVolAddress<T>
[src]
Checked "indexing" style access of the block, giving either a
WOVolAddress
or a panic.
pub fn get(self, slot: usize) -> Option<WOVolAddress<T>>
[src]
Checked "getting" style access of the block, giving an Option value.
Trait Implementations
impl<T, const COUNT: usize> Clone for WOVolBlock<T, COUNT>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T, const COUNT: usize> Copy for WOVolBlock<T, COUNT>
[src]
impl<T, const COUNT: usize> Debug for WOVolBlock<T, COUNT>
[src]
impl<T, const COUNT: usize> Eq for WOVolBlock<T, COUNT>
[src]
impl<T, const COUNT: usize> PartialEq<WOVolBlock<T, COUNT>> for WOVolBlock<T, COUNT>
[src]
Auto Trait Implementations
impl<const COUNT: usize, T> !Send for WOVolBlock<T, COUNT>
impl<const COUNT: usize, T> !Sync for WOVolBlock<T, COUNT>
impl<const COUNT: usize, T> Unpin for WOVolBlock<T, COUNT>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,