Enum memory_range::RangeWalkResult
source · pub enum RangeWalkResult<T, U> {
Neither,
Left(T),
Right(U),
Both(T, U),
}
Expand description
The result of an iteration of walk_ranges
.
Variants§
Neither
Neither iterator contains this range.
Left(T)
Only the left iterator contains this range, in the element with the given value.
Right(U)
Only the right iterator contains this range, in the element with the given value.
Both(T, U)
Both iterators contain this range, in the elements with the given values.
Trait Implementations§
source§impl<T: Clone, U: Clone> Clone for RangeWalkResult<T, U>
impl<T: Clone, U: Clone> Clone for RangeWalkResult<T, U>
source§fn clone(&self) -> RangeWalkResult<T, U>
fn clone(&self) -> RangeWalkResult<T, U>
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 moreimpl<T: Copy, U: Copy> Copy for RangeWalkResult<T, U>
impl<T: Eq, U: Eq> Eq for RangeWalkResult<T, U>
impl<T, U> StructuralPartialEq for RangeWalkResult<T, U>
Auto Trait Implementations§
impl<T, U> Freeze for RangeWalkResult<T, U>
impl<T, U> RefUnwindSafe for RangeWalkResult<T, U>where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<T, U> Send for RangeWalkResult<T, U>
impl<T, U> Sync for RangeWalkResult<T, U>
impl<T, U> Unpin for RangeWalkResult<T, U>
impl<T, U> UnwindSafe for RangeWalkResult<T, U>where
T: UnwindSafe,
U: UnwindSafe,
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
)