pub struct IntersectionSegment {
pub start: NodeKey,
pub end: NodeKey,
}Expand description
One segment of the intersection curve, joining two nodes.
Fields§
§start: NodeKeyOne endpoint.
end: NodeKeyThe other endpoint.
Implementations§
Source§impl IntersectionSegment
impl IntersectionSegment
Sourcepub fn between(start: NodeKey, end: NodeKey) -> GeomResult<Self>
pub fn between(start: NodeKey, end: NodeKey) -> GeomResult<Self>
Build a segment between two distinct nodes.
Rejects a segment that collapses to one node: that is a degenerate contact, not a piece of curve.
Trait Implementations§
Source§impl Clone for IntersectionSegment
impl Clone for IntersectionSegment
impl Copy for IntersectionSegment
Source§impl Debug for IntersectionSegment
impl Debug for IntersectionSegment
impl Eq for IntersectionSegment
Source§impl Ord for IntersectionSegment
impl Ord for IntersectionSegment
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for IntersectionSegment
impl PartialEq for IntersectionSegment
Source§impl PartialOrd for IntersectionSegment
impl PartialOrd for IntersectionSegment
impl StructuralPartialEq for IntersectionSegment
Auto Trait Implementations§
impl Freeze for IntersectionSegment
impl RefUnwindSafe for IntersectionSegment
impl Send for IntersectionSegment
impl Sync for IntersectionSegment
impl Unpin for IntersectionSegment
impl UnsafeUnpin for IntersectionSegment
impl UnwindSafe for IntersectionSegment
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