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
fn into_wrapped(source: Self) -> Wrapped
fn into_wrapped(source: Self) -> Wrapped
Wraps the fact in the Wrapped type.
fn from_wrapped(wrapped: Wrapped) -> TractResult<Self>
fn from_wrapped(wrapped: Wrapped) -> TractResult<Self>
Retrieves the fact from the Wrapped type. Panics if wrapped doesn’t have the right constructor.