[][src]Struct voladdress::write_only::WOVolSeries

pub struct WOVolSeries<T, const COUNT: usize, const STRIDE: usize> { /* fields omitted */ }

A series of evenly strided addresses, write only.

  • The COUNT parameter is the element count of the series.
  • The STRIDE parameter is the stride (in bytes) from one element to the next.

Methods

impl<T, const COUNT: usize, const STRIDE: usize> WOVolSeries<T, COUNT, STRIDE>[src]

pub const unsafe fn new(address: usize) -> Self[src]

Constructs a new WOVolSeries.

Safety

The given address must be a valid WOVolAddress at each position in the series for however many slots (C), strided by the selected amount (S).

pub const fn len(self) -> usize[src]

The length of this series (in elements)

Important traits for WOVolStridingIter<T, STRIDE>
pub const fn iter(self) -> WOVolStridingIter<T, STRIDE>[src]

Gives an iterator over the slots of this series.

pub const unsafe fn index_unchecked(self, slot: usize) -> WOVolAddress<T>[src]

Unchecked indexing into the series.

Safety

The slot given must be in bounds.

pub fn index(self, slot: usize) -> WOVolAddress<T>[src]

Checked "indexing" style access into the series, giving either a WOVolAddress or a panic.

pub fn get(self, slot: usize) -> Option<WOVolAddress<T>>[src]

Checked "getting" style access into the series, giving an Option value.

Trait Implementations

impl<T, const COUNT: usize, const STRIDE: usize> Clone for WOVolSeries<T, COUNT, STRIDE>[src]

impl<T, const COUNT: usize, const STRIDE: usize> Copy for WOVolSeries<T, COUNT, STRIDE>[src]

impl<T, const COUNT: usize, const STRIDE: usize> Debug for WOVolSeries<T, COUNT, STRIDE>[src]

impl<T, const COUNT: usize, const STRIDE: usize> Eq for WOVolSeries<T, COUNT, STRIDE>[src]

impl<T, const COUNT: usize, const STRIDE: usize> PartialEq<WOVolSeries<T, COUNT, STRIDE>> for WOVolSeries<T, COUNT, STRIDE>[src]

Auto Trait Implementations

impl<const COUNT: usize, const STRIDE: usize, T> !Send for WOVolSeries<T, COUNT, STRIDE>

impl<const COUNT: usize, const STRIDE: usize, T> !Sync for WOVolSeries<T, COUNT, STRIDE>

impl<const COUNT: usize, const STRIDE: usize, T> Unpin for WOVolSeries<T, COUNT, STRIDE>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.