[−][src]Struct caminos_lib::routing::Shortest
Use the shortest path from origin to destination
Implementations
impl Shortest
[src]
pub fn new(arg: RoutingBuilderArgument<'_>) -> Shortest
[src]
Trait Implementations
impl Debug for Shortest
[src]
impl Routing for Shortest
[src]
pub fn next(
&self,
_routing_info: &RoutingInfo,
topology: &dyn Topology,
current_router: usize,
target_server: usize,
num_virtual_channels: usize,
_rng: &RefCell<StdRng>
) -> Vec<CandidateEgress>
[src]
&self,
_routing_info: &RoutingInfo,
topology: &dyn Topology,
current_router: usize,
target_server: usize,
num_virtual_channels: usize,
_rng: &RefCell<StdRng>
) -> Vec<CandidateEgress>
pub fn initialize_routing_info(
&self,
_routing_info: &RefCell<RoutingInfo>,
_topology: &dyn Topology,
_current_router: usize,
_target_server: usize,
_rng: &RefCell<StdRng>
)
[src]
&self,
_routing_info: &RefCell<RoutingInfo>,
_topology: &dyn Topology,
_current_router: usize,
_target_server: usize,
_rng: &RefCell<StdRng>
)
pub fn update_routing_info(
&self,
_routing_info: &RefCell<RoutingInfo>,
_topology: &dyn Topology,
_current_router: usize,
_current_port: usize,
_target_server: usize,
_rng: &RefCell<StdRng>
)
[src]
&self,
_routing_info: &RefCell<RoutingInfo>,
_topology: &dyn Topology,
_current_router: usize,
_current_port: usize,
_target_server: usize,
_rng: &RefCell<StdRng>
)
pub fn initialize(
&mut self,
_topology: &Box<dyn Topology>,
_rng: &RefCell<StdRng>
)
[src]
&mut self,
_topology: &Box<dyn Topology>,
_rng: &RefCell<StdRng>
)
Auto Trait Implementations
impl RefUnwindSafe for Shortest
impl Send for Shortest
impl Sync for Shortest
impl Unpin for Shortest
impl UnwindSafe for Shortest
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,