pub struct Segment<'a, T> {
pub from: &'a Point<T>,
pub to: &'a Point<T>,
}Expand description
The straight line between two endpoints.
Fields§
§from: &'a Point<T>The first point in the segment.
to: &'a Point<T>The last point in the segment.
Trait Implementations§
Source§impl<'a, T> Edge<'a> for Segment<'a, T>
impl<'a, T> Edge<'a> for Segment<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for Segment<'a, T>
impl<'a, T> RefUnwindSafe for Segment<'a, T>where
&'a Point<T>: RefUnwindSafe,
impl<'a, T> Send for Segment<'a, T>
impl<'a, T> Sync for Segment<'a, T>
impl<'a, T> Unpin for Segment<'a, T>
impl<'a, T> UnsafeUnpin for Segment<'a, T>where
&'a Point<T>: UnsafeUnpin,
impl<'a, T> UnwindSafe for Segment<'a, T>where
&'a Point<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