pub struct Model { /* private fields */ }
Expand description

Represents a Fornjot model

Implementations

Initialize the model using the path to its crate (i.e. the folder containing Cargo.toml).

Optionally, the target directory where plugin files are compiled to can be provided. If it is not provided, the target directory is assumed to be located within the model path.

Load the model once

The passed arguments are provided to the model. Returns the shape that the model returns.

Please refer to Model::load_and_watch, if you want to watch the model for changes, reloading it continually.

Load the model, then watch it for changes

Whenever a change is detected, the model is being reloaded.

Consumes this instance of Model and returns a Watcher, which can be queried for changes to the model.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.