pub struct RoutePlanAttemptState { /* private fields */ }Implementations§
Source§impl RoutePlanAttemptState
impl RoutePlanAttemptState
pub fn avoid_provider_endpoint(&mut self, key: ProviderEndpointKey) -> bool
pub fn avoids_provider_endpoint(&self, key: &ProviderEndpointKey) -> bool
pub fn avoid_candidate( &mut self, template: &RoutePlanTemplate, candidate: &RouteCandidate, ) -> bool
pub fn avoids_candidate( &self, template: &RoutePlanTemplate, candidate: &RouteCandidate, ) -> bool
pub fn avoid_upstream( &mut self, station_name: &str, upstream_index: usize, ) -> bool
pub fn avoid_selected(&mut self, selected: &SelectedRouteCandidate<'_>) -> bool
pub fn avoid_selected_upstream(&mut self, selected: &SelectedUpstream) -> bool
pub fn avoids_upstream(&self, station_name: &str, upstream_index: usize) -> bool
pub fn avoid_for_station_name(&self, station_name: &str) -> Vec<usize>
pub fn avoided_total(&self) -> usize
pub fn station_exhausted_for( &self, station_name: &str, upstream_total: usize, ) -> bool
pub fn route_candidates_exhausted(&self, template: &RoutePlanTemplate) -> bool
pub fn route_avoid_candidate_indices( &self, template: &RoutePlanTemplate, ) -> Vec<usize>
Trait Implementations§
Source§impl Clone for RoutePlanAttemptState
impl Clone for RoutePlanAttemptState
Source§fn clone(&self) -> RoutePlanAttemptState
fn clone(&self) -> RoutePlanAttemptState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RoutePlanAttemptState
impl Debug for RoutePlanAttemptState
Source§impl Default for RoutePlanAttemptState
impl Default for RoutePlanAttemptState
Source§fn default() -> RoutePlanAttemptState
fn default() -> RoutePlanAttemptState
Returns the “default value” for a type. Read more
Source§impl PartialEq for RoutePlanAttemptState
impl PartialEq for RoutePlanAttemptState
Source§fn eq(&self, other: &RoutePlanAttemptState) -> bool
fn eq(&self, other: &RoutePlanAttemptState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RoutePlanAttemptState
impl StructuralPartialEq for RoutePlanAttemptState
Auto Trait Implementations§
impl Freeze for RoutePlanAttemptState
impl RefUnwindSafe for RoutePlanAttemptState
impl Send for RoutePlanAttemptState
impl Sync for RoutePlanAttemptState
impl Unpin for RoutePlanAttemptState
impl UnsafeUnpin for RoutePlanAttemptState
impl UnwindSafe for RoutePlanAttemptState
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.