pub struct Engine {
pub config_path: PathBuf,
pub config: Config,
pub registry: Registry,
pub target: Target,
pub llm_opts: LlmOpts,
pub files: BTreeSet<PathBuf>,
pub no_clear: bool,
/* private fields */
}Fields§
§config_path: PathBuf§config: Config§registry: Registry§target: Target§llm_opts: LlmOpts§files: BTreeSet<PathBuf>§no_clear: boolWhen true, suppress the clear-screen sequence between recompile runs.
Implementations§
Source§impl Engine
impl Engine
pub fn load(opts: &WatchOpts) -> Result<Self, String>
pub fn add_file(&mut self, p: PathBuf)
pub fn compile_all<W: Write>(&mut self, log: &mut W) -> Vec<CompileOutcome>
pub fn compile_one<W: Write>( &mut self, path: &Path, log: &mut W, ) -> CompileOutcome
pub fn reload_config(&mut self) -> Result<ConfigDelta, String>
pub fn files_using(&self, shortcodes: &BTreeSet<String>) -> Vec<PathBuf>
Auto Trait Implementations§
impl Freeze for Engine
impl RefUnwindSafe for Engine
impl Send for Engine
impl Sync for Engine
impl Unpin for Engine
impl UnsafeUnpin for Engine
impl UnwindSafe for Engine
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