pub struct SerializeOutput {
pub egraph: EGraph,
pub truncated_functions: Vec<String>,
pub discarded_functions: Vec<String>,
}
Expand description
Output of serializing an e-graph, including values that were omitted if any.
Fields§
§egraph: EGraph
The serialized e-graph.
truncated_functions: Vec<String>
Functions with more calls than max_calls_per_function, so that not all values are included.
discarded_functions: Vec<String>
Functions that were discarded from the output, because more functions were present than max_functions
Implementations§
Source§impl SerializeOutput
impl SerializeOutput
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Returns true if the serialization is complete and no functions were truncated or discarded.
Sourcepub fn omitted_description(&self) -> String
pub fn omitted_description(&self) -> String
Description of what was omitted from the e-graph
Auto Trait Implementations§
impl !Freeze for SerializeOutput
impl RefUnwindSafe for SerializeOutput
impl Send for SerializeOutput
impl Sync for SerializeOutput
impl Unpin for SerializeOutput
impl UnwindSafe for SerializeOutput
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> 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