pub struct OutputEvent<F: Float> {
pub kind: OutputEventKind<F>,
pub seg_idx: SegIdx,
}Expand description
Describes the interaction between a line segment and a sweep-line.
See OutputEventKind for more details. OutputEvent is ordered primarily
by the smallest horizontal coordinate where it intersects the sweep-line
(i.e. OutputEventKind::smaller_x).
Fields§
§kind: OutputEventKind<F>The kind of interaction.
seg_idx: SegIdxThe segment that’s interacting with the sweep line.
Trait Implementations§
Source§impl<F: Clone + Float> Clone for OutputEvent<F>
impl<F: Clone + Float> Clone for OutputEvent<F>
Source§fn clone(&self) -> OutputEvent<F>
fn clone(&self) -> OutputEvent<F>
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<F: Ord + Float> Ord for OutputEvent<F>
impl<F: Ord + Float> Ord for OutputEvent<F>
Source§fn cmp(&self, other: &OutputEvent<F>) -> Ordering
fn cmp(&self, other: &OutputEvent<F>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<F: PartialOrd + Float> PartialOrd for OutputEvent<F>
impl<F: PartialOrd + Float> PartialOrd for OutputEvent<F>
impl<F: Eq + Float> Eq for OutputEvent<F>
impl<F: Float> StructuralPartialEq for OutputEvent<F>
Auto Trait Implementations§
impl<F> Freeze for OutputEvent<F>where
F: Freeze,
impl<F> RefUnwindSafe for OutputEvent<F>where
F: RefUnwindSafe,
impl<F> Send for OutputEvent<F>where
F: Send,
impl<F> Sync for OutputEvent<F>where
F: Sync,
impl<F> Unpin for OutputEvent<F>where
F: Unpin,
impl<F> UnwindSafe for OutputEvent<F>where
F: 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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more