Trait BaselineTrait

Source
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§

Source

fn path() -> Result<PathBuf, BaselineError>

Returns the default path to the CFD cases repository Return the path from the “CFD__REPO” or “CFD_REPO” environment variable if any is set, otherwise returns the default path

Source

fn configuration(zenith_angle: ZenithAngle) -> Vec<(WindSpeed, Enclosure)>

Returns pairs of WindSpeed and Enclosure configuration for the given ZenithAngle

Source

fn at_zenith(zenith_angle: ZenithAngle) -> Self

Returns a CFD baseline reduced to the given ZenithAngle

Source

fn find<const OTHER_YEAR: u32>( cfd_case_21: CfdCase<OTHER_YEAR>, ) -> Option<CfdCase<YEAR>>

Finds the CFD case from OTHER_YEAR that matches a CFD baseline case in YEAR

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.

Implementors§

Source§

impl<const YEAR: u32> BaselineTrait<YEAR> for Baseline<YEAR>