pub struct FlatteningRules;Expand description
A normalization rule that flattens nested unions and intersections.
Trait Implementations§
Source§impl Default for FlatteningRules
impl Default for FlatteningRules
Source§fn default() -> FlatteningRules
fn default() -> FlatteningRules
Returns the “default value” for a type. Read more
Source§impl RewriteRule for FlatteningRules
impl RewriteRule for FlatteningRules
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 FlatteningRules
impl RefUnwindSafe for FlatteningRules
impl Send for FlatteningRules
impl Sync for FlatteningRules
impl Unpin for FlatteningRules
impl UnwindSafe for FlatteningRules
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.