pub struct BlockTable {
pub design: DesignKindFile,
pub samples: Option<usize>,
pub design_seed: Option<TomlSeed>,
pub file: Option<PathBuf>,
pub table_text: Option<String>,
pub factors: Vec<FactorTable>,
pub file_text: Option<String>,
}Expand description
Factors combined under one design.
Fields§
§design: DesignKindFileDesign that combines the factors, factorial when left out.
samples: Option<usize>Number of configs that a random or Latin hypercube design draws.
design_seed: Option<TomlSeed>Seed of a random or Latin hypercube design’s draws, derived from the root seed when left out.
file: Option<PathBuf>Path of a table design’s CSV file, relative to the spec file.
table_text: Option<String>Text of a table design’s CSV, written in the spec instead of file.
factors: Vec<FactorTable>Factors of the block. A table design takes its factors from its table, and lists no factors here.
file_text: Option<String>Text of the table that file refers to, read by SpecFile::load.
Trait Implementations§
Source§impl Clone for BlockTable
impl Clone for BlockTable
Source§impl Debug for BlockTable
impl Debug for BlockTable
Source§impl<'de> Deserialize<'de> for BlockTable
impl<'de> Deserialize<'de> for BlockTable
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&BlockSpec> for BlockTable
impl From<&BlockSpec> for BlockTable
Source§fn from(block: &BlockSpec) -> Self
fn from(block: &BlockSpec) -> Self
Writes a table design’s text in BlockTable::table_text, and a design seed for a random or Latin hypercube
design alone.
Source§impl PartialEq for BlockTable
impl PartialEq for BlockTable
Source§impl Serialize for BlockTable
impl Serialize for BlockTable
impl StructuralPartialEq for BlockTable
Auto Trait Implementations§
impl Freeze for BlockTable
impl RefUnwindSafe for BlockTable
impl Send for BlockTable
impl Sync for BlockTable
impl Unpin for BlockTable
impl UnsafeUnpin for BlockTable
impl UnwindSafe for BlockTable
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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