pub fn ship_interface_from_local_config() -> Option<ShipInterface> {
    let yaml_str = std::fs::read_to_string("ship_config.yaml").ok()?;
    let yaml = YamlLoader::load_from_str(&yaml_str).unwrap()[0].clone();
    ship_interface_from_yaml(yaml)
}
/// Opens a local `ship_config.yaml` file and uses the
/// data inside to create a `ShipInterface`
Opens a local `ship_config.yaml` file and uses the
data inside to create a `ShipInterface`
Opens a local ` ship_config . yaml ` file and uses the data inside to create a ` ShipInterface `
pub fn ship_interface_from_local_config() -> Option<ShipInterface> {
    let yaml_str = std::fs::read_to_string("ship_config.yaml").ok()?;
    let yaml = YamlLoader::load_from_str(&yaml_str).unwrap()[0].clone();
    ship_interface_from_yaml(yaml)
}
pub fn ship_interface_from_local_config ( ) -> Option < ShipInterface > { let yaml_str = std :: fs :: read_to_string ( " " ) . ok ( ) ? ; let yaml = YamlLoader :: load_from_str ( & yaml_str ) . unwrap ( ) [ 0 ] . clone ( ) ; ship_interface_from_yaml ( yaml ) }
Opens a local `ship_config.yaml` file and uses the
data inside to create a `ShipInterface`
Opens a local ` ship_config . yaml ` file and uses the data inside to create a ` ShipInterface `