Struct DummyCharArray3D

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

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

Implementations§

Source§

impl<'a> DummyCharArray3D<'a>

Source

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

Trait Implementations§

Source§

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

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 Index<[i32; 3]> for DummyCharArray3D<'_>

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

Auto Trait Implementations§

§

impl<'a> Freeze for DummyCharArray3D<'a>

§

impl<'a> RefUnwindSafe for DummyCharArray3D<'a>

§

impl<'a> Send for DummyCharArray3D<'a>

§

impl<'a> Sync for DummyCharArray3D<'a>

§

impl<'a> Unpin for DummyCharArray3D<'a>

§

impl<'a> UnwindSafe for DummyCharArray3D<'a>

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.