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 moresource§impl Debug for BinaryPart
impl Debug for BinaryPart
source§impl PartialEq for BinaryPart
impl PartialEq for BinaryPart
impl Eq for BinaryPart
Auto Trait Implementations§
impl Freeze for BinaryPart
impl RefUnwindSafe for BinaryPart
impl Send for BinaryPart
impl Sync for BinaryPart
impl Unpin for BinaryPart
impl UnwindSafe for BinaryPart
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)