pub(crate) enum PredicateNode {
OwnedBool(BoolSettingIndex),
SharedBool(&'static str, &'static str),
And(Box<PredicateNode>, Box<PredicateNode>),
}
Variants§
OwnedBool(BoolSettingIndex)
And(Box<PredicateNode>, Box<PredicateNode>)
Implementations§
source§impl PredicateNode
impl PredicateNode
fn render(&self, group: &SettingGroup) -> String
Trait Implementations§
source§impl<'a> From<(BoolSettingIndex, &'a SettingGroup)> for PredicateNode
impl<'a> From<(BoolSettingIndex, &'a SettingGroup)> for PredicateNode
source§fn from(val: (BoolSettingIndex, &'a SettingGroup)) -> Self
fn from(val: (BoolSettingIndex, &'a SettingGroup)) -> Self
Converts to this type from the input type.
source§impl From<BoolSettingIndex> for PredicateNode
impl From<BoolSettingIndex> for PredicateNode
source§fn from(bool_setting_index: BoolSettingIndex) -> Self
fn from(bool_setting_index: BoolSettingIndex) -> Self
Converts to this type from the input type.
source§impl Hash for PredicateNode
impl Hash for PredicateNode
source§impl PartialEq for PredicateNode
impl PartialEq for PredicateNode
source§fn eq(&self, other: &PredicateNode) -> bool
fn eq(&self, other: &PredicateNode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PredicateNode
impl StructuralPartialEq for PredicateNode
Auto Trait Implementations§
impl Freeze for PredicateNode
impl RefUnwindSafe for PredicateNode
impl Send for PredicateNode
impl Sync for PredicateNode
impl Unpin for PredicateNode
impl UnwindSafe for PredicateNode
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