pub struct SubwayOptions {
pub margin: f64,
pub lane_gap: f64,
pub bend_penalty: f64,
pub max_grid_cells: usize,
pub max_expansions: usize,
pub max_total_expansions: usize,
pub crossing_penalty: f64,
pub overlap_factor: f64,
}Expand description
Tuning. Default matches the Svelte client.
Fields§
§margin: f64Clearance kept around node bounds (and stub length off each anchor).
lane_gap: f64Offset between parallel lanes sharing a corridor.
bend_penalty: f64Extra cost per 90° turn — higher means straighter routes.
max_grid_cells: usizeBail out to elbow fallback when the routing grid gets this big.
max_expansions: usizePer-connection A* expansion cap before falling back to an elbow.
max_total_expansions: usizeWhole-batch A* expansion budget — keeps worst-case latency bounded.
crossing_penalty: f64Cost of crossing an already-routed line (0 disables crossing avoidance).
overlap_factor: f64Length multiplier for riding a corridor an unrelated route occupies — negative DISCOUNTS sharing, bundling routes into common trunks.
Trait Implementations§
Source§impl Clone for SubwayOptions
impl Clone for SubwayOptions
impl Copy for SubwayOptions
Source§impl Debug for SubwayOptions
impl Debug for SubwayOptions
Auto Trait Implementations§
impl Freeze for SubwayOptions
impl RefUnwindSafe for SubwayOptions
impl Send for SubwayOptions
impl Sync for SubwayOptions
impl Unpin for SubwayOptions
impl UnsafeUnpin for SubwayOptions
impl UnwindSafe for SubwayOptions
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 moreSource§impl<El, T, Marker> IntoElementMaybeSignal<T, Marker> for Elwhere
El: IntoElementMaybeSignalType<T, Marker>,
impl<El, T, Marker> IntoElementMaybeSignal<T, Marker> for Elwhere
El: IntoElementMaybeSignalType<T, Marker>,
fn into_element_maybe_signal(self) -> ElementMaybeSignal<T>
Source§impl<T, Js> IntoElementMaybeSignalType<T, Element> for Js
impl<T, Js> IntoElementMaybeSignalType<T, Element> for Js
fn into_element_maybe_signal_type(self) -> ElementMaybeSignalType<T>
Source§impl<El, T, Marker> IntoElementsMaybeSignal<T, Marker> for Elwhere
El: IntoElementsMaybeSignalType<T, Marker>,
impl<El, T, Marker> IntoElementsMaybeSignal<T, Marker> for Elwhere
El: IntoElementsMaybeSignalType<T, Marker>,
fn into_elements_maybe_signal(self) -> ElementsMaybeSignal<T>
Source§impl<T, Js> IntoElementsMaybeSignalType<T, Element> for Js
impl<T, Js> IntoElementsMaybeSignalType<T, Element> for Js
fn into_elements_maybe_signal_type(self) -> ElementsMaybeSignalType<T>
Source§impl<T> SerializableKey for T
impl<T> SerializableKey for T
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.