pub enum Difference<T> {
Before(AnyRange<T>, bool),
After(AnyRange<T>, bool),
Split(AnyRange<T>, AnyRange<T>),
Empty,
}
Expand description
Result of a without
operation.
Variants§
Before(AnyRange<T>, bool)
The end of the range may intersects other
. The boolean is set to true if it does.
After(AnyRange<T>, bool)
The begining of the range may intersects other
. The boolean is set to true if it does.
Split(AnyRange<T>, AnyRange<T>)
The other
range if fully included.
Empty
The range is fully included in other
.
Auto Trait Implementations§
impl<T> Freeze for Difference<T>where
T: Freeze,
impl<T> RefUnwindSafe for Difference<T>where
T: RefUnwindSafe,
impl<T> Send for Difference<T>where
T: Send,
impl<T> Sync for Difference<T>where
T: Sync,
impl<T> Unpin for Difference<T>where
T: Unpin,
impl<T> UnwindSafe for Difference<T>where
T: 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