Struct ActualCharArray4D

Source
pub struct ActualCharArray4D { /* private fields */ }
Expand description

Implementation of CHARACTER arrays used as actual arguments, which own their data.

Implementations§

Source§

impl ActualCharArray4D

Source

pub fn new( element_length: i32, b0: RangeInclusive<i32>, b1: RangeInclusive<i32>, b2: RangeInclusive<i32>, b3: RangeInclusive<i32>, ) -> Self

Trait Implementations§

Source§

impl CharArrayOps<[i32; 4]> for ActualCharArray4D

Source§

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

Source§

fn element_length(&self) -> usize

Source§

fn byte_offset(&self, index: [i32; 4]) -> 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; 4]> for ActualCharArray4D

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; 4]> for ActualCharArray4D

Source§

type Output = [u8]

The returned type after indexing.
Source§

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

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

impl IndexMut<[i32; 4]> for ActualCharArray4D

Source§

fn index_mut(&mut self, index: [i32; 4]) -> &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.