pub struct ConfigurationSpace { /* private fields */ }Implementations§
Source§impl ConfigurationSpace
impl ConfigurationSpace
Sourcepub fn load(
configuration_directory: impl Into<PathBuf>,
) -> Result<Self, ConfigurationError>
pub fn load( configuration_directory: impl Into<PathBuf>, ) -> Result<Self, ConfigurationError>
Loads and validates fixed.json and sweep.json from directory.
Sourcepub fn directory(&self) -> &Path
pub fn directory(&self) -> &Path
Returns the configuration directory exactly as supplied during loading.
pub fn fixed_source_json(&self) -> &[u8] ⓘ
pub fn sweep_source_json(&self) -> &[u8] ⓘ
Sourcepub fn fixed_value_count(&self) -> usize
pub fn fixed_value_count(&self) -> usize
Returns the number of fixed terminal values.
Sourcepub fn sweep_dimension_count(&self) -> usize
pub fn sweep_dimension_count(&self) -> usize
Returns the number of independently selected sweep paths.
pub fn combination_count(&self) -> u64
Sourcepub fn contains(&self, key: &str) -> bool
pub fn contains(&self, key: &str) -> bool
Reports whether a fixed or swept value exists at or beneath key.
pub fn fixed_keys(&self) -> impl ExactSizeIterator<Item = &str>
pub fn sweep_keys(&self) -> impl ExactSizeIterator<Item = &str>
pub fn combination( &self, ordinal: u64, ) -> Result<ResolvedConfiguration, ConfigurationError>
pub fn combinations(&self) -> ConfigurationIter ⓘ
Trait Implementations§
Source§impl Clone for ConfigurationSpace
impl Clone for ConfigurationSpace
Source§fn clone(&self) -> ConfigurationSpace
fn clone(&self) -> ConfigurationSpace
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 ConfigurationSpace
impl RefUnwindSafe for ConfigurationSpace
impl Send for ConfigurationSpace
impl Sync for ConfigurationSpace
impl Unpin for ConfigurationSpace
impl UnsafeUnpin for ConfigurationSpace
impl UnwindSafe for ConfigurationSpace
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