pub enum ReductionStrategy {
LeftmostOutermost,
LeftmostInnermost,
RightmostOutermost,
ParallelOutermost,
Needed,
}Expand description
Represents a reduction strategy for a term rewriting system.
Variants§
LeftmostOutermost
Leftmost-outermost (normal order).
LeftmostInnermost
Leftmost-innermost (applicative order).
RightmostOutermost
Rightmost-outermost.
ParallelOutermost
Parallel outermost.
Needed
Needed reduction (lazy evaluation).
Implementations§
Source§impl ReductionStrategy
impl ReductionStrategy
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Checks if this strategy is complete (finds normal form if it exists).
Sourcepub fn normalizing_for_orthogonal(&self) -> bool
pub fn normalizing_for_orthogonal(&self) -> bool
Checks if this strategy is normalizing for orthogonal TRS.
Sourcepub fn lambda_calculus_analog(&self) -> &str
pub fn lambda_calculus_analog(&self) -> &str
Returns the corresponding lambda calculus evaluation order.
Trait Implementations§
Source§impl Clone for ReductionStrategy
impl Clone for ReductionStrategy
Source§fn clone(&self) -> ReductionStrategy
fn clone(&self) -> ReductionStrategy
Returns a duplicate 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 ReductionStrategy
impl Debug for ReductionStrategy
Source§impl PartialEq for ReductionStrategy
impl PartialEq for ReductionStrategy
impl StructuralPartialEq for ReductionStrategy
Auto Trait Implementations§
impl Freeze for ReductionStrategy
impl RefUnwindSafe for ReductionStrategy
impl Send for ReductionStrategy
impl Sync for ReductionStrategy
impl Unpin for ReductionStrategy
impl UnsafeUnpin for ReductionStrategy
impl UnwindSafe for ReductionStrategy
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