[−][src]Struct voladdress::write_only::WOVolSeries
A series of evenly strided addresses, write only.
- The
C
parameter is the element count of the series. - The
S
parameter is the stride (in bytes) from one element to the next.
Methods
impl<T, C: Unsigned, S: Unsigned> WOVolSeries<T, C, S>
[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, S>pub const fn iter(self) -> WOVolStridingIter<T, S>
[src]
ⓘImportant traits for WOVolStridingIter<T, S>
Gives an iterator over the slots of this series.
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 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, C: Unsigned, S: Unsigned> Debug for WOVolSeries<T, C, S>
[src]
impl<T, C: Unsigned, S: Unsigned> PartialEq<WOVolSeries<T, C, S>> for WOVolSeries<T, C, S>
[src]
fn eq(&self, other: &Self) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=
.
impl<T, C: Unsigned, S: Unsigned> Eq for WOVolSeries<T, C, S>
[src]
impl<T, C: Unsigned, S: Unsigned> Copy for WOVolSeries<T, C, S>
[src]
impl<T, C: Unsigned, S: Unsigned> Clone for WOVolSeries<T, C, S>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<T, C, S> !Send for WOVolSeries<T, C, S>
impl<T, C, S> !Sync for WOVolSeries<T, C, S>
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> TryFrom 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 for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same for T
[src]
type Output = T
Should always be Self