[][src]Struct melange::tensor::heap_layout::HeapLayout

pub struct HeapLayout<T> { /* fields omitted */ }

Vec-backed contiguous layout that does not require a shape known at compile time. This comes with some memory overhead to store both the shape and intrinsic strides (i.e. cumulative products of the dimensions).

HeapLayout is the default dynamic storage in Melange and should be prefered unless you have specific needs.

Trait Implementations

impl<T> Alloc for HeapLayout<T> where
    T: Default + Clone
[src]

impl<T: Clone> Clone for HeapLayout<T>[src]

impl<T: Debug> Debug for HeapLayout<T>[src]

impl<T> Deref for HeapLayout<T>[src]

type Target = [T]

The resulting type after dereferencing.

impl<T> DerefMut for HeapLayout<T>[src]

impl<T> DynamicFill<T> for HeapLayout<T> where
    T: Clone
[src]

impl<'a, T> Layout<'a, T> for HeapLayout<T> where
    T: 'static, 
[src]

type Iter = Chunks<'a, T>

type View = SliceLayout<'a, T>

impl<'a, T> LayoutMut<'a, T> for HeapLayout<T> where
    T: 'a, 
[src]

type IterMut = ChunksMut<'a, T>

impl<T: PartialEq> PartialEq<HeapLayout<T>> for HeapLayout<T>[src]

impl<T> StructuralPartialEq for HeapLayout<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for HeapLayout<T> where
    T: RefUnwindSafe

impl<T> Send for HeapLayout<T> where
    T: Send

impl<T> Sync for HeapLayout<T> where
    T: Sync

impl<T> Unpin for HeapLayout<T> where
    T: Unpin

impl<T> UnwindSafe for HeapLayout<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.