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
pub trait PathCost {
    // Required method
    fn total_cost(&self) -> i32;
    // Provided method
    fn is_connected_to_bos(&self) -> bool { ... }
}Accessor trait for the full path cost