pub struct PhaseConfiguration { /* private fields */ }Expand description
The lazily expanded parameter space for one group-qualified phase.
Implementations§
Source§impl PhaseConfiguration
impl PhaseConfiguration
Sourcepub fn configuration_directory(&self) -> &Path
pub fn configuration_directory(&self) -> &Path
Returns the directory containing the study-wide parameter source.
Sourcepub fn phase_group(&self) -> &str
pub fn phase_group(&self) -> &str
Returns this phase’s stable containing group key.
Sourcepub fn combination_count(&self) -> u64
pub fn combination_count(&self) -> u64
Returns the complete global × shared × phase combination count.
Sourcepub fn fixed_value_count(&self) -> usize
pub fn fixed_value_count(&self) -> usize
Returns the number of ordinary terminal leaves in the merged view.
Sourcepub fn swept_value_count(&self) -> usize
pub fn swept_value_count(&self) -> usize
Returns the number of terminal paths selected by sweep dimensions.
Sourcepub fn contains(&self, key: &str) -> bool
pub fn contains(&self, key: &str) -> bool
Reports whether a fixed or selectable value exists at or below key.
Sourcepub fn fixed_keys(&self) -> impl ExactSizeIterator<Item = &str>
pub fn fixed_keys(&self) -> impl ExactSizeIterator<Item = &str>
Iterates ordinary terminal JSON Pointer keys in declaration order.
Sourcepub fn sweep_keys(&self) -> impl ExactSizeIterator<Item = &str>
pub fn sweep_keys(&self) -> impl ExactSizeIterator<Item = &str>
Iterates selectable terminal JSON Pointer keys in declaration order.
Sourcepub fn combination(
&self,
ordinal: u64,
) -> Result<ResolvedConfiguration, ConfigurationError>
pub fn combination( &self, ordinal: u64, ) -> Result<ResolvedConfiguration, ConfigurationError>
Resolves one flattened phase ordinal with bounds checking.
Sourcepub fn combinations(&self) -> ConfigurationIter ⓘ
pub fn combinations(&self) -> ConfigurationIter ⓘ
Lazily iterates every resolved combination in deterministic order.
Trait Implementations§
Source§impl Clone for PhaseConfiguration
impl Clone for PhaseConfiguration
Source§fn clone(&self) -> PhaseConfiguration
fn clone(&self) -> PhaseConfiguration
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PhaseConfiguration
impl RefUnwindSafe for PhaseConfiguration
impl Send for PhaseConfiguration
impl Sync for PhaseConfiguration
impl Unpin for PhaseConfiguration
impl UnsafeUnpin for PhaseConfiguration
impl UnwindSafe for PhaseConfiguration
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more