pub struct RuleTreeNode {
pub formula: Formula,
pub children: Vec<RuleTreeNode>,
pub props: Vec<Property>,
pub constraints: Vec<Key>,
/* private fields */
}Fields§
§formula: Formula§children: Vec<RuleTreeNode>§props: Vec<Property>§constraints: Vec<Key>Implementations§
Source§impl RuleTreeNode
impl RuleTreeNode
pub fn new(formula: Formula) -> Self
pub fn with_expand_limit(formula: Formula, expand_limit: u32) -> Self
pub fn iter<'a>(&'a self) -> Box<dyn Iterator<Item = &'a RuleTreeNode> + 'a>
pub fn traverse(&mut self, selector: Selector) -> &mut RuleTreeNode
pub fn add_property( &mut self, name: impl ToString, value: impl ToString, origin: Origin, should_override: bool, )
pub fn add_constraint(&mut self, key: Key)
pub fn stats(&self) -> Stats
pub fn label(&self) -> String
pub fn color(&self) -> String
Trait Implementations§
Source§impl Clone for RuleTreeNode
impl Clone for RuleTreeNode
Source§fn clone(&self) -> RuleTreeNode
fn clone(&self) -> RuleTreeNode
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 RuleTreeNode
impl Debug for RuleTreeNode
Source§impl Default for RuleTreeNode
impl Default for RuleTreeNode
Source§impl Display for RuleTreeNode
impl Display for RuleTreeNode
Source§impl From<&RuleTreeNode> for DiGraph
impl From<&RuleTreeNode> for DiGraph
Source§fn from(value: &RuleTreeNode) -> Self
fn from(value: &RuleTreeNode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RuleTreeNode
impl PartialEq for RuleTreeNode
impl StructuralPartialEq for RuleTreeNode
Auto Trait Implementations§
impl Freeze for RuleTreeNode
impl RefUnwindSafe for RuleTreeNode
impl Send for RuleTreeNode
impl Sync for RuleTreeNode
impl Unpin for RuleTreeNode
impl UnwindSafe for RuleTreeNode
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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