Skip to main content

PathCost

Trait PathCost 

Source
pub trait PathCost {
    // Required method
    fn total_cost(&self) -> i32;

    // Provided method
    fn is_connected_to_bos(&self) -> bool { ... }
}
Expand description

Accessor trait for the full path cost

Required Methods§

Source

fn total_cost(&self) -> i32

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§