Struct spiropath::PathState [−][src]
pub struct PathState<'a> { pub contact_point: ContactPoint, pub points: &'a [Point], pub directions: &'a [Point], pub lengths: &'a [usize], pub bends: &'a [f64], }
Expand description
The state we maintain for one of the paths.
Fields
contact_point: ContactPoint
The current contact with the other polyline.
points: &'a [Point]
A vector of the points along the polyline.
directions: &'a [Point]
A vector of the directions of the polyline at each point.
lengths: &'a [usize]
A vector of the lengths of the polyline segments at each point.
bends: &'a [f64]
A vector of the bending angles of the polyline segments at each point.
Trait Implementations
impl<'a> Copy for PathState<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for PathState<'a>
impl<'a> Send for PathState<'a>
impl<'a> Sync for PathState<'a>
impl<'a> Unpin for PathState<'a>
impl<'a> UnwindSafe for PathState<'a>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more