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
.
Trait Implementations§
source§impl PartialEq for Part
impl PartialEq for Part
impl Eq for Part
impl StructuralPartialEq for Part
Auto Trait Implementations§
impl Freeze for Part
impl RefUnwindSafe for Part
impl Send for Part
impl Sync for Part
impl Unpin for Part
impl UnwindSafe for Part
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