pub struct Trail {
pub shape: RouteShape,
pub support_points: Vec<SupportPoint>,
pub routing: RoutingLaw,
}Fields§
§shape: RouteShape§support_points: Vec<SupportPoint>§routing: RoutingLawImplementations§
Source§impl Trail
impl Trail
pub fn forge( shape: RouteShape, support_points: Vec<SupportPoint>, routing: RoutingLaw, ) -> Result<Self>
pub fn validate(&self) -> Result<()>
Sourcepub fn infer(
graph: &WalkGraph,
route: &Route,
routing: RoutingLaw,
) -> Option<Self>
pub fn infer( graph: &WalkGraph, route: &Route, routing: RoutingLaw, ) -> Option<Self>
Recovers a compact, lossless support design. Globally shortest spans remain single legs; an irreducible non-shortest edge receives an interior support so the design compels that physical segment.
pub fn realize( &self, name: impl Into<String>, graph: &WalkGraph, constraints: &LoopConstraints, max_snap_m: f64, ) -> Result<TrailRealization>
pub fn realize_indexed( &self, name: impl Into<String>, graph: &WalkGraph, index: &EdgeIndex, router: &WalkRouter, constraints: &LoopConstraints, max_snap_m: f64, ) -> Result<TrailRealization>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Trail
impl<'de> Deserialize<'de> for Trail
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Trail
Auto Trait Implementations§
impl Freeze for Trail
impl RefUnwindSafe for Trail
impl Send for Trail
impl Sync for Trail
impl Unpin for Trail
impl UnsafeUnpin for Trail
impl UnwindSafe for Trail
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