pub struct ProofMinimizer { /* private fields */ }Expand description
Proof minimizer that performs hash-cons deduplication followed by iterative dependency-cone reduction until a fixed point.
Implementations§
Source§impl ProofMinimizer
impl ProofMinimizer
Sourcepub fn new(config: MinimizeConfig) -> Self
pub fn new(config: MinimizeConfig) -> Self
Create a new minimizer with the given configuration.
Sourcepub fn with_defaults() -> Self
pub fn with_defaults() -> Self
Create a minimizer with default configuration.
Sourcepub fn minimize(&self, proof: &mut Proof) -> MinimizeResult
pub fn minimize(&self, proof: &mut Proof) -> MinimizeResult
Minimize proof in-place.
Returns a MinimizeResult describing what was done.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProofMinimizer
impl RefUnwindSafe for ProofMinimizer
impl Send for ProofMinimizer
impl Sync for ProofMinimizer
impl Unpin for ProofMinimizer
impl UnsafeUnpin for ProofMinimizer
impl UnwindSafe for ProofMinimizer
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