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

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

A trait for values produced by expressions.

Required methods

Wraps the fact in the Wrapped type.

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

Provided methods

Wraps self in the Wrapped type.

Implementations on Foreign Types

Implementors