Struct orkhon::prelude::ops::nn::BaseDataShape[][src]

pub struct BaseDataShape<D, S> where
    S: AsRef<[D]> + Debug,
    D: DimLike
{ pub fmt: DataFormat, pub shape: S, pub strides: SmallVec<[D; 4]>, }

Fields

fmt: DataFormatshape: Sstrides: SmallVec<[D; 4]>

Implementations

impl<D, S> BaseDataShape<D, S> where
    S: AsRef<[D]> + Debug,
    D: DimLike
[src]

pub fn rank(&self) -> usize[src]

pub fn hw_rank(&self) -> usize[src]

pub fn n_axis(&self) -> Option<usize>[src]

pub fn c_axis(&self) -> usize[src]

pub fn h_axis(&self) -> usize[src]

pub fn hw_axes(&self) -> Range<usize>

Notable traits for Range<A>

impl<A> Iterator for Range<A> where
    A: Step
type Item = A;
[src]

pub fn n_dim(&self) -> Option<&D>[src]

pub fn c_dim(&self) -> &D

Notable traits for &'_ mut W

impl<'_, W> Write for &'_ mut W where
    W: Write + ?Sized
impl<'_, R> Read for &'_ mut R where
    R: Read + ?Sized
impl<'_, I> Iterator for &'_ mut I where
    I: Iterator + ?Sized
type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
    F: Unpin + Future + ?Sized
type Output = <F as Future>::Output;
[src]

pub fn hw_dims(&self) -> &[D]

Notable traits for &'_ mut [u8]

impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
[src]

pub fn n(&self) -> Option<&D>[src]

pub fn c(&self) -> &D

Notable traits for &'_ mut W

impl<'_, W> Write for &'_ mut W where
    W: Write + ?Sized
impl<'_, R> Read for &'_ mut R where
    R: Read + ?Sized
impl<'_, I> Iterator for &'_ mut I where
    I: Iterator + ?Sized
type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
    F: Unpin + Future + ?Sized
type Output = <F as Future>::Output;
[src]

pub fn n_stride(&self) -> Option<&D>[src]

pub fn h_stride(&self) -> &D

Notable traits for &'_ mut W

impl<'_, W> Write for &'_ mut W where
    W: Write + ?Sized
impl<'_, R> Read for &'_ mut R where
    R: Read + ?Sized
impl<'_, I> Iterator for &'_ mut I where
    I: Iterator + ?Sized
type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
    F: Unpin + Future + ?Sized
type Output = <F as Future>::Output;
[src]

pub fn hw_strides(&self) -> &[D]

Notable traits for &'_ mut [u8]

impl<'_> Write for &'_ mut [u8]impl<'_> Read for &'_ [u8]
[src]

pub fn w_stride(&self) -> &D

Notable traits for &'_ mut W

impl<'_, W> Write for &'_ mut W where
    W: Write + ?Sized
impl<'_, R> Read for &'_ mut R where
    R: Read + ?Sized
impl<'_, I> Iterator for &'_ mut I where
    I: Iterator + ?Sized
type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
    F: Unpin + Future + ?Sized
type Output = <F as Future>::Output;
[src]

pub fn c_stride(&self) -> &D

Notable traits for &'_ mut W

impl<'_, W> Write for &'_ mut W where
    W: Write + ?Sized
impl<'_, R> Read for &'_ mut R where
    R: Read + ?Sized
impl<'_, I> Iterator for &'_ mut I where
    I: Iterator + ?Sized
type Item = <I as Iterator>::Item;impl<'_, F> Future for &'_ mut F where
    F: Unpin + Future + ?Sized
type Output = <F as Future>::Output;
[src]

Trait Implementations

impl<D, S> Clone for BaseDataShape<D, S> where
    S: Clone + AsRef<[D]> + Debug,
    D: Clone + DimLike
[src]

impl<D, S> Debug for BaseDataShape<D, S> where
    S: Debug + AsRef<[D]>,
    D: Debug + DimLike
[src]

impl<D, S> Hash for BaseDataShape<D, S> where
    S: Hash + AsRef<[D]> + Debug,
    D: Hash + DimLike
[src]

impl<D, S> PartialEq<BaseDataShape<D, S>> for BaseDataShape<D, S> where
    S: PartialEq<S> + AsRef<[D]> + Debug,
    D: PartialEq<D> + DimLike
[src]

impl<D, S> StructuralPartialEq for BaseDataShape<D, S> where
    S: AsRef<[D]> + Debug,
    D: DimLike
[src]

Auto Trait Implementations

impl<D, S> RefUnwindSafe for BaseDataShape<D, S> where
    D: RefUnwindSafe,
    S: RefUnwindSafe
[src]

impl<D, S> Send for BaseDataShape<D, S> where
    S: Send
[src]

impl<D, S> Sync for BaseDataShape<D, S> where
    S: Sync
[src]

impl<D, S> Unpin for BaseDataShape<D, S> where
    D: Unpin,
    S: Unpin
[src]

impl<D, S> UnwindSafe for BaseDataShape<D, S> where
    D: RefUnwindSafe + UnwindSafe,
    S: UnwindSafe
[src]

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> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

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

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

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

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.