[][src]Enum tract_core::ops::scan::InputMapping

pub enum InputMapping<C: Clone> {
    Full {
        slot: usize,
    },
    State {
        initializer: StateInitializer,
    },
    Scan {
        slot: usize,
        axis: usize,
        chunk: C,
    },
}

Variants

Full

Fields of Full

slot: usize
State

Fields of State

initializer: StateInitializer
Scan

Fields of Scan

slot: usizeaxis: usizechunk: C

Methods

impl<C: Clone> InputMapping<C>[src]

pub fn new_full(slot: usize) -> Self[src]

Constructs a new InputMapping::Full.

impl<C: Clone> InputMapping<C>[src]

pub fn new_state(initializer: StateInitializer) -> Self[src]

Constructs a new InputMapping::State.

impl<C: Clone> InputMapping<C>[src]

pub fn new_scan(slot: usize, axis: usize, chunk: C) -> Self[src]

Constructs a new InputMapping::Scan.

impl<C: Clone> InputMapping<C>[src]

pub fn as_state(&self) -> Option<&StateInitializer>[src]

pub fn as_scan(&self) -> Option<(usize, usize, C)>[src]

pub fn invisible(&self) -> bool[src]

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

Trait Implementations

impl<C: Clone> Clone for InputMapping<C>[src]

impl<C: Clone + Debug> Debug for InputMapping<C>[src]

Auto Trait Implementations

impl<C> RefUnwindSafe for InputMapping<C> where
    C: RefUnwindSafe

impl<C> Send for InputMapping<C> where
    C: Send

impl<C> Sync for InputMapping<C> where
    C: Sync

impl<C> Unpin for InputMapping<C> where
    C: Unpin

impl<C> UnwindSafe for InputMapping<C> where
    C: 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> Downcast for T where
    T: Any
[src]

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

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.