Struct elipdotter::query::BinaryPart
source · pub struct BinaryPart {
pub left: Part,
pub right: Part,
}
Expand description
Eq implementation doesn’t care of which is left and right.
Fields§
§left: Part
§right: Part
Implementations§
source§impl BinaryPart
impl BinaryPart
pub fn new(left: Part, right: Part) -> Self
pub fn into_box(self) -> Box<Self>
sourcepub fn swap(&mut self)
pub fn swap(&mut self)
Swaps Self::left
and Self::right
.
This does not affect Eq
.
sourcepub fn eq_order(&self, other: &Self) -> bool
pub fn eq_order(&self, other: &Self) -> bool
Tests the equality of the parts AND order of Self::left
& Self::right
.
Trait Implementations§
source§impl Clone for BinaryPart
impl Clone for BinaryPart
source§fn clone(&self) -> BinaryPart
fn clone(&self) -> BinaryPart
Returns a copy 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 more