pub struct CPT {
pub exps: Vec<CPTExp>,
pub idealization_method: SelectionMethod,
}
Expand description
Represents a collection of CPT tests.
A CPT
struct contains multiple CPTExp
instances, each representing a single CPT profile.
Fields§
§exps: Vec<CPTExp>
§idealization_method: SelectionMethod
Implementations§
Source§impl CPT
impl CPT
Sourcepub fn new(exps: Vec<CPTExp>, idealization_method: SelectionMethod) -> Self
pub fn new(exps: Vec<CPTExp>, idealization_method: SelectionMethod) -> Self
Creates a new CPT
instance.
§Arguments
exps
- A vector ofCPTExp
instances.idealization_method
- The method used for idealization.
Sourcepub fn add_exp(&mut self, exp: CPTExp)
pub fn add_exp(&mut self, exp: CPTExp)
Adds a new CPTExp
instance to the CPT
collection.
§Arguments
exp
- TheCPTExp
instance to add to the collection.
Sourcepub fn get_idealized_exp(&self, name: String) -> CPTExp
pub fn get_idealized_exp(&self, name: String) -> CPTExp
Creates an idealized CPT experiment based on the given mode. The idealized experiment is created by combining the corresponding layers from each individual experiment in the model.
§Arguments
name
- The name of the idealized experiment.
§Returns
A new CPTExp
instance representing the idealized experiment.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CPT
impl<'de> Deserialize<'de> for CPT
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
Auto Trait Implementations§
impl Freeze for CPT
impl RefUnwindSafe for CPT
impl Send for CPT
impl Sync for CPT
impl Unpin for CPT
impl UnwindSafe for CPT
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