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§
fn total_cost(&self) -> i32
Provided Methods§
fn is_connected_to_bos(&self) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".