pub struct HypotheticalVegetation {
pub name: &'static str,
pub min_temperature_k: f64,
pub min_pressure_pa: f64,
}
impl HypotheticalVegetation {
pub fn could_survive_on_surface(&self) -> bool {
self.min_temperature_k <= crate::MEAN_TEMPERATURE_K
&& self.min_pressure_pa <= crate::SURFACE_PRESSURE_PA
}
}
pub fn extremophile_model() -> HypotheticalVegetation {
HypotheticalVegetation {
name: "Acid-tolerant extremophile analogue",
min_temperature_k: 300.0,
min_pressure_pa: 10_000.0,
}
}