pub struct Baseline<const YEAR: u32>(/* private fields */);Expand description
The whole CFD baseline for a given year: 2020, 2021 or 2025
Implementations§
Trait Implementations§
Source§impl<const YEAR: u32> BaselineTrait<YEAR> for Baseline<YEAR>
impl<const YEAR: u32> BaselineTrait<YEAR> for Baseline<YEAR>
Source§fn path() -> Result<PathBuf, BaselineError>
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)>
fn configuration(zenith_angle: ZenithAngle) -> Vec<(WindSpeed, Enclosure)>
Source§fn at_zenith(zenith_angle: ZenithAngle) -> Self
fn at_zenith(zenith_angle: ZenithAngle) -> Self
Returns a CFD baseline reduced to the given ZenithAngle
Source§impl<const YEAR: u32> IntoIterator for Baseline<YEAR>
impl<const YEAR: u32> IntoIterator for Baseline<YEAR>
Auto Trait Implementations§
impl<const YEAR: u32> Freeze for Baseline<YEAR>
impl<const YEAR: u32> RefUnwindSafe for Baseline<YEAR>
impl<const YEAR: u32> Send for Baseline<YEAR>
impl<const YEAR: u32> Sync for Baseline<YEAR>
impl<const YEAR: u32> Unpin for Baseline<YEAR>
impl<const YEAR: u32> UnwindSafe for Baseline<YEAR>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.