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

pub enum InputMapping<C> where
    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

Implementations

impl<C> InputMapping<C> where
    C: Clone
[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]

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

pub fn new_full(slot: usize) -> InputMapping<C>[src]

Constructs a new InputMapping::Full.

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

pub fn new_state(initializer: StateInitializer) -> InputMapping<C>[src]

Constructs a new InputMapping::State.

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

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

Constructs a new InputMapping::Scan.

Trait Implementations

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

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

impl<C> Hash for InputMapping<C> where
    C: Clone + Hash
[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

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.