pub struct Model { /* private fields */ }Expand description
Represents a Fornjot model
Implementations§
source§impl Model
impl Model
sourcepub fn new(path: impl AsRef<Path>, parameters: Parameters) -> Result<Self, Error>
pub fn new(path: impl AsRef<Path>, parameters: Parameters) -> Result<Self, Error>
Initialize the model using the path to its crate
The path expected here is the root directory of the model’s Cargo
package, that is the folder containing Cargo.toml.
sourcepub fn watch_path(&self) -> PathBuf
pub fn watch_path(&self) -> PathBuf
Access the path that needs to be watched for changes
sourcepub fn evaluate(&self) -> Result<Evaluation, Error>
pub fn evaluate(&self) -> Result<Evaluation, Error>
Evaluate the model