pub struct PointingSegment<'a, P: PointMut> { /* private fields */ }Expand description
A segment borrowing two mutable endpoints instead of storing copies.
Mirrors model::pointing_segment from
geometries/pointing_segment.hpp:39-72. Boost stores nullable raw
pointers because its segment iterator requires default construction. Rust
represents only the valid, non-null state and uses the borrow checker to
prevent the endpoints from outliving their source.
Implementations§
Trait Implementations§
Source§impl<P: PointMut> Geometry for PointingSegment<'_, P>
impl<P: PointMut> Geometry for PointingSegment<'_, P>
Source§impl<P: PointMut> IndexedAccess for PointingSegment<'_, P>
impl<P: PointMut> IndexedAccess for PointingSegment<'_, P>
impl<P: PointMut> Segment for PointingSegment<'_, P>
Auto Trait Implementations§
impl<'a, P> !UnwindSafe for PointingSegment<'a, P>
impl<'a, P> Freeze for PointingSegment<'a, P>
impl<'a, P> RefUnwindSafe for PointingSegment<'a, P>where
P: RefUnwindSafe,
impl<'a, P> Send for PointingSegment<'a, P>where
P: Send,
impl<'a, P> Sync for PointingSegment<'a, P>where
P: Sync,
impl<'a, P> Unpin for PointingSegment<'a, P>
impl<'a, P> UnsafeUnpin for PointingSegment<'a, P>
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