pub struct AbsorbtionRules;
Expand description
A normalization rule that applies absorption laws for unions and intersections.
A union containing True
always evaluates to True
, and an
intersection containing False
always evaluates to False
.
Trait Implementations§
Source§impl Default for AbsorbtionRules
impl Default for AbsorbtionRules
Source§fn default() -> AbsorbtionRules
fn default() -> AbsorbtionRules
Returns the “default value” for a type. Read more
Source§impl RewriteRule for AbsorbtionRules
impl RewriteRule for AbsorbtionRules
Source§fn rewrite(&self, node: NormalizedSelection) -> NormalizedSelection
fn rewrite(&self, node: NormalizedSelection) -> NormalizedSelection
Applies a rewrite step to a node whose children have already
been recursively rewritten.
Auto Trait Implementations§
impl Freeze for AbsorbtionRules
impl RefUnwindSafe for AbsorbtionRules
impl Send for AbsorbtionRules
impl Sync for AbsorbtionRules
impl Unpin for AbsorbtionRules
impl UnwindSafe for AbsorbtionRules
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 moreSource§impl<T> RewriteRuleExt for Twhere
T: RewriteRule,
impl<T> RewriteRuleExt for Twhere
T: RewriteRule,
Source§fn then<R: RewriteRule>(self, other: R) -> (Self, R)
fn then<R: RewriteRule>(self, other: R) -> (Self, R)
Chains this rule with another rule, creating a composite rule
that applies
self
first, then other
.