pub trait BaselineTrait<const YEAR: u32>:
Default
+ From<Vec<CfdCase<YEAR>>>
+ IntoIterator<Item = CfdCase<YEAR>> {
// Provided methods
fn path() -> Result<PathBuf, BaselineError> { ... }
fn configuration(zenith_angle: ZenithAngle) -> Vec<(WindSpeed, Enclosure)> { ... }
fn at_zenith(zenith_angle: ZenithAngle) -> Self { ... }
fn find<const OTHER_YEAR: u32>(
cfd_case_21: CfdCase<OTHER_YEAR>,
) -> Option<CfdCase<YEAR>> { ... }
}Provided Methods§
Sourcefn path() -> Result<PathBuf, BaselineError>
fn path() -> Result<PathBuf, BaselineError>
Returns the default path to the CFD cases repository
Return the path from the “CFD_
Sourcefn configuration(zenith_angle: ZenithAngle) -> Vec<(WindSpeed, Enclosure)>
fn configuration(zenith_angle: ZenithAngle) -> Vec<(WindSpeed, Enclosure)>
Returns pairs of WindSpeed and Enclosure configuration for the given ZenithAngle
Sourcefn at_zenith(zenith_angle: ZenithAngle) -> Self
fn at_zenith(zenith_angle: ZenithAngle) -> Self
Returns a CFD baseline reduced to the given ZenithAngle
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.