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

pub enum InputMapping {
    Full {
        slot: usize,
    },
    State {
        initializer: StateInitializer,
    },
    Scan {
        slot: usize,
        axis: usize,
        chunk: isize,
    },
}

Variants

Full

Fields of Full

slot: usize
State

Fields of State

initializer: StateInitializer
Scan

Fields of Scan

slot: usizeaxis: usizechunk: isize

Implementations

impl InputMapping[src]

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

Constructs a new InputMapping::Full.

impl InputMapping[src]

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

Constructs a new InputMapping::State.

impl InputMapping[src]

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

Constructs a new InputMapping::Scan.

impl InputMapping[src]

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

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

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

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

Trait Implementations

impl Clone for InputMapping[src]

impl Debug for InputMapping[src]

impl Hash for InputMapping[src]

Auto Trait Implementations

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: Any + Send + Sync
[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.