pub trait Output:
Debug
+ Clone
+ PartialEq {
// Required methods
fn into_wrapped(source: Self) -> Wrapped;
fn from_wrapped(wrapped: Wrapped) -> TractResult<Self>;
// Provided method
fn wrap(self) -> Wrapped { ... }
}Expand description
A trait for values produced by expressions.
Required Methods§
Sourcefn into_wrapped(source: Self) -> Wrapped
fn into_wrapped(source: Self) -> Wrapped
Wraps the fact in the Wrapped type.
Sourcefn 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.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.