MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / set_string_prefix

Method set_string_prefix

src/compilation_pipeline.rs:307–309  ·  view source on GitHub ↗
(&mut self, prefix: Option<String>)

Source from the content-addressed store, hash-verified

305 pub fn set_source_prelude(&mut self, src: impl Into<String>) {
306 self.source_prelude = src.into();
307 }
308
309 /// Set the filesystem path of the source currently being compiled. Relative
310 /// `import("./x.hll")` and `import("../x.hll")` resolve against this file's directory.
311 pub fn set_current_source_path(&mut self, path: Option<impl Into<PathBuf>>) {
312 self.current_source_path = path.map(Into::into);

Calls

no outgoing calls