Enum elipdotter::query::Part
source · pub enum Part {
And(Box<BinaryPart>),
Or(Box<BinaryPart>),
Not(Box<Part>),
String(String),
}
Expand description
A part of a Query
.
Variants§
Implementations§
source§impl Part
impl Part
pub fn s(s: impl AsRef<str>) -> Self
pub fn and(left: impl Into<Self>, right: impl Into<Self>) -> Self
pub fn or(left: impl Into<Self>, right: impl Into<Self>) -> Self
pub fn not(not: impl Into<Self>) -> Self
pub fn for_each<'a>(&'a self, f: &mut impl FnMut(&'a Part))
pub fn for_each_string<'a>(&'a self, f: &mut impl FnMut(&'a str))
sourcepub fn eq_order(&self, other: &Self) -> bool
pub fn eq_order(&self, other: &Self) -> bool
Tests the equality of the parts AND order.
See BinaryPart
for more details.
This makes no difference to the Eq
implementation if self
is Self::Not
or
Self::String
.