Struct mdarray::Dense

source ·
pub struct Dense;
Expand description

Dense array layout type.

Trait Implementations§

source§

impl Layout for Dense

§

type NonUniform = General

Corresponding layout which may have non-uniform stride.
§

type NonUnitStrided = Flat

Corresponding layout which may have non-unit inner stride.
§

type Uniform = Dense

Corresponding layout with uniform stride.
§

type UnitStrided = Dense

Corresponding layout with unit inner stride.
§

type Layout<D: Dim, L: Layout> = <D as Dim>::Layout<L>

Combined layout based on the dimension.
§

type Mapping<D: Dim> = DenseMapping<D>

Array layout mapping type.
source§

const IS_UNIFORM: bool = true

True if the layout type has uniform stride.
source§

const IS_UNIT_STRIDED: bool = true

True if the layout type has unit inner stride.
source§

impl<T, D: Dim> SpanIndex<T, D, Dense> for (Bound<usize>, Bound<usize>)

§

type Output = [T]

Array element or subslice type.
source§

impl<T, D: Dim> SpanIndex<T, D, Dense> for Range<usize>

§

type Output = [T]

Array element or subslice type.
source§

impl<T, D: Dim> SpanIndex<T, D, Dense> for RangeFrom<usize>

§

type Output = [T]

Array element or subslice type.
source§

impl<T, D: Dim> SpanIndex<T, D, Dense> for RangeFull

§

type Output = [T]

Array element or subslice type.
source§

impl<T, D: Dim> SpanIndex<T, D, Dense> for RangeInclusive<usize>

§

type Output = [T]

Array element or subslice type.
source§

impl<T, D: Dim> SpanIndex<T, D, Dense> for RangeTo<usize>

§

type Output = [T]

Array element or subslice type.
source§

impl<T, D: Dim> SpanIndex<T, D, Dense> for RangeToInclusive<usize>

§

type Output = [T]

Array element or subslice type.
source§

impl ViewIndex<Const<0>, Dense> for ()

§

type Dim = Const<0>

Array view dimension.
§

type Params = (Dense, Dense, Flat)

Array view parameters.
§

type Layout = <<<() as ViewIndex<Const<0>, Dense>>::Params as Params>::Layout as Layout>::Layout<<() as ViewIndex<Const<0>, Dense>>::Dim, Dense>

Array view layout.
source§

impl Uniform for Dense

source§

impl UnitStrided for Dense

Auto Trait Implementations§

§

impl RefUnwindSafe for Dense

§

impl Send for Dense

§

impl Sync for Dense

§

impl Unpin for Dense

§

impl UnwindSafe for Dense

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> IntoCloned<T> for T

source§

fn clone_to(self, target: &mut T)

Moves an existing object or clones from a reference to the target object.
source§

fn into_cloned(self) -> T

Returns an existing object or a new clone from a reference.
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

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

§

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.