Dense

Struct Dense 

Source
pub struct Dense;
Expand description

Dense array layout type.

Trait Implementations§

Source§

impl Layout for Dense

Source§

const IS_DENSE: bool = true

True if the layout type is dense.
Source§

type Mapping<S: Shape> = DenseMapping<S>

Array layout mapping type.
Source§

impl<T, S: Shape> SliceIndex<T, S, Dense> for (Bound<usize>, Bound<usize>)

Source§

type Output = [T]

Array element or subslice type.
Source§

impl<T, S: Shape> SliceIndex<T, S, Dense> for Range<usize>

Source§

type Output = [T]

Array element or subslice type.
Source§

impl<T, S: Shape> SliceIndex<T, S, Dense> for RangeFrom<usize>

Source§

type Output = [T]

Array element or subslice type.
Source§

impl<T, S: Shape> SliceIndex<T, S, Dense> for RangeFull

Source§

type Output = [T]

Array element or subslice type.
Source§

impl<T, S: Shape> SliceIndex<T, S, Dense> for RangeInclusive<usize>

Source§

type Output = [T]

Array element or subslice type.
Source§

impl<T, S: Shape> SliceIndex<T, S, Dense> for RangeTo<usize>

Source§

type Output = [T]

Array element or subslice type.
Source§

impl<T, S: Shape> SliceIndex<T, S, Dense> for RangeToInclusive<usize>

Source§

type Output = [T]

Array element or subslice type.

Auto Trait Implementations§

§

impl Freeze for Dense

§

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

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.