pub enum TrackPath {
Direct {
start: Position,
end: Position,
},
Manhattan {
start: Position,
end: Position,
prefer_horizontal_first: bool,
},
Diagonal45 {
start: Position,
end: Position,
},
Vertices(Vec<Position>),
}Expand description
Track path specification with support for various routing styles.
Variants§
Direct
Direct line from start to end.
Manhattan
Manhattan routing (90-degree angles only).
Diagonal45
Diagonal routing (45-degree angles).
Vertices(Vec<Position>)
Explicit list of vertices.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TrackPath
impl RefUnwindSafe for TrackPath
impl Send for TrackPath
impl Sync for TrackPath
impl Unpin for TrackPath
impl UnwindSafe for TrackPath
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more