[][src]Trait tract_hir::infer::rules::expr::Output

pub trait Output: Debug + Clone + PartialEq {
    fn into_wrapped(source: Self) -> Wrapped;
fn from_wrapped(wrapped: Wrapped) -> TractResult<Self>; fn wrap(self) -> Wrapped { ... } }

A trait for values produced by expressions.

Required methods

fn into_wrapped(source: Self) -> Wrapped

Wraps the fact in the Wrapped type.

fn from_wrapped(wrapped: Wrapped) -> TractResult<Self>

Retrieves the fact from the Wrapped type. Panics if wrapped doesn't have the right constructor.

Loading content...

Provided methods

fn wrap(self) -> Wrapped

Wraps self in the Wrapped type.

Loading content...

Implementations on Foreign Types

impl Output for usize[src]

impl Output for i32[src]

Loading content...

Implementors

impl Output for TDim[src]

impl Output for ShapeFactoid[src]

impl Output for Arc<Tensor>[src]

impl Output for DimFact[src]

impl Output for IntFactoid[src]

impl Output for TypeFactoid[src]

impl Output for ValueFact[src]

Loading content...