[][src]Struct exchange_rate::exchange_rate::ExchangeRatePath

pub struct ExchangeRatePath<I: BufRead> { /* fields omitted */ }

ExchangeRatePath structure.

ExchangeRatePath<I> is parameterized over:

  • Index I for indexing of nodes N.

Methods

impl<I: BufRead> ExchangeRatePath<I>[src]

pub fn new(input: I) -> Self[src]

Create a new instance of ExchangeRatePath structure.

Examples

use exchange_rate::ExchangeRatePath;

ExchangeRatePath::new(std::io::stdin().lock());

pub fn run<N, E>(&mut self) where
    N: Clone + Display + FromStr + IndexMapTrait + Debug,
    <N as FromStr>::Err: Debug,
    E: Display + FloydWarshallTrait + FromStr + Debug,
    <E as FromStr>::Err: Debug
[src]

Run the Exchange Rate Path application.

Auto Trait Implementations

impl<I> Send for ExchangeRatePath<I> where
    I: Send

impl<I> Sync for ExchangeRatePath<I> where
    I: Sync

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]