pub struct Outline<'a> { /* private fields */ }Expand description
Represents an outline (a polygon) of a RoadObject.
Implementations§
Source§impl<'a> Outline<'a>
impl<'a> Outline<'a>
Sourcepub fn is_closed(&self) -> bool
pub fn is_closed(&self) -> bool
Returns whether this outline is closed (first and last corner coincide).
Sourcepub fn num_corners(&self) -> i32
pub fn num_corners(&self) -> i32
Returns the number of corners in this outline.
Sourcepub fn corners(&self) -> Vec<OutlineCorner>
pub fn corners(&self) -> Vec<OutlineCorner>
Returns the corners of this outline.
Auto Trait Implementations§
impl<'a> Freeze for Outline<'a>
impl<'a> RefUnwindSafe for Outline<'a>
impl<'a> !Send for Outline<'a>
impl<'a> !Sync for Outline<'a>
impl<'a> Unpin for Outline<'a>
impl<'a> UnsafeUnpin for Outline<'a>
impl<'a> UnwindSafe for Outline<'a>
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