pub struct ConnectorRouting { /* private fields */ }Expand description
The vertical connectors a route may climb through, and how a climb counts.
A route enters and leaves a connector at its landings, the two ends
of its walking line, and counts the climb between them by
ClimbLength. A request carrying this routes through these
connectors only: any other connector is no way between levels for it.
A backend that cannot prove a connector’s length or passability leaves
every route through it undecided, never shorter and never blocked.
Implementations§
Source§impl ConnectorRouting
impl ConnectorRouting
Sourcepub fn try_new(
connectors: Vec<VerticalConnector>,
climb: ClimbLength,
) -> Result<Self, MetricRoutingError>
pub fn try_new( connectors: Vec<VerticalConnector>, climb: ClimbLength, ) -> Result<Self, MetricRoutingError>
The connectors (sorted, deduplicated) and the climb length.
§Errors
MetricRoutingError::ConflictingConnector when one object is
given two kinds.
Sourcepub fn connectors(&self) -> &[VerticalConnector]
pub fn connectors(&self) -> &[VerticalConnector]
The connectors a route may climb through, sorted.
Sourcepub fn climb(&self) -> ClimbLength
pub fn climb(&self) -> ClimbLength
How a climb counts.
Trait Implementations§
Source§impl Clone for ConnectorRouting
impl Clone for ConnectorRouting
Source§impl Debug for ConnectorRouting
impl Debug for ConnectorRouting
Source§impl PartialEq for ConnectorRouting
impl PartialEq for ConnectorRouting
impl StructuralPartialEq for ConnectorRouting
Auto Trait Implementations§
impl Freeze for ConnectorRouting
impl RefUnwindSafe for ConnectorRouting
impl Send for ConnectorRouting
impl Sync for ConnectorRouting
impl Unpin for ConnectorRouting
impl UnsafeUnpin for ConnectorRouting
impl UnwindSafe for ConnectorRouting
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