Struct DummyCharArrayMut3D

Source
pub struct DummyCharArrayMut3D<'a> { /* private fields */ }
Expand description

Implementation of CHARACTER arrays used as dummy arguments, which don’t own their data.

Implementations§

Source§

impl<'a> DummyCharArrayMut3D<'a>

Source

pub fn new<B0: RangeBounds<i32>, B1: RangeBounds<i32>, B2: RangeBounds<i32>>( r: CharArrayMut<'a>, element_length: Option<i32>, b0: B0, b1: B1, b2: B2, ) -> Self

Trait Implementations§

Source§

impl CharArrayOps<[i32; 3]> for DummyCharArrayMut3D<'_>

Source§

fn data(&self) -> &[u8]

Source§

fn element_length(&self) -> usize

Source§

fn byte_offset(&self, index: [i32; 3]) -> usize

Source§

fn offset(&self, index: I) -> usize

Source§

fn to_owned(&self) -> OwnedCharArray

Source§

fn first(&self) -> &[u8]

Source§

fn as_arg(&self) -> CharArray<'_>

Source§

fn get(&self, index: I) -> &[u8]

Source§

fn subarray(&self, index: I) -> CharArray<'_>

Source§

fn subscript(&self, index: I) -> i32

Source§

impl CharArrayOpsMut<[i32; 3]> for DummyCharArrayMut3D<'_>

Source§

fn data_mut(&mut self) -> &mut [u8]

Source§

fn first_mut(&mut self) -> &mut [u8]

Source§

fn as_arg_mut(&mut self) -> CharArrayMut<'_>

Source§

fn get_mut(&mut self, index: I) -> &mut [u8]

Source§

fn iter_mut(&mut self) -> impl Iterator<Item = &mut [u8]>

Source§

fn subarray_mut(&mut self, index: I) -> CharArrayMut<'_>

Source§

fn get_disjoint_mut<const N: usize>( &mut self, indices: [I; N], ) -> Result<[&mut [u8]; N], GetDisjointMutError>

Source§

impl Index<[i32; 3]> for DummyCharArrayMut3D<'_>

Source§

type Output = [u8]

The returned type after indexing.
Source§

fn index(&self, index: [i32; 3]) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
Source§

impl IndexMut<[i32; 3]> for DummyCharArrayMut3D<'_>

Source§

fn index_mut(&mut self, index: [i32; 3]) -> &mut Self::Output

Performs the mutable indexing (container[index]) operation. Read more

Auto Trait Implementations§

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> 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<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.