pub enum CommandOutput {
PrintFunctionSize(usize),
PrintAllFunctionsSize(Vec<(String, usize)>),
ExtractBest(TermDag, DefaultCost, Term),
ExtractVariants(TermDag, Vec<Term>),
OverallStatistics(RunReport),
PrintFunction(Function, TermDag, Vec<(Term, Term)>, PrintFunctionMode),
RunSchedule(RunReport),
UserDefined(Arc<dyn UserDefinedCommandOutput>),
}Expand description
Output from a command.
Variants§
PrintFunctionSize(usize)
The size of a function
PrintAllFunctionsSize(Vec<(String, usize)>)
The name of all functions and their sizes
ExtractBest(TermDag, DefaultCost, Term)
The best function found after extracting
ExtractVariants(TermDag, Vec<Term>)
The variants of a function found after extracting
OverallStatistics(RunReport)
The report from all runs
PrintFunction(Function, TermDag, Vec<(Term, Term)>, PrintFunctionMode)
A printed function and all its values
RunSchedule(RunReport)
The report from a single run
UserDefined(Arc<dyn UserDefinedCommandOutput>)
A user defined output
Trait Implementations§
Source§impl Clone for CommandOutput
impl Clone for CommandOutput
Source§fn clone(&self) -> CommandOutput
fn clone(&self) -> CommandOutput
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommandOutput
impl Debug for CommandOutput
Auto Trait Implementations§
impl Freeze for CommandOutput
impl !RefUnwindSafe for CommandOutput
impl Send for CommandOutput
impl Sync for CommandOutput
impl Unpin for CommandOutput
impl !UnwindSafe for CommandOutput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more