MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / dynamic_file

Method dynamic_file

flow-rs/src/lib.rs:96–99  ·  view source on GitHub ↗
(mut self, path: P)

Source from the content-addressed store, hash-verified

94 }
95
96 pub fn dynamic_file<P: AsRef<Path>>(mut self, path: P) -> Result<Self> {
97 self.dynamic = std::fs::read_to_string(path.as_ref())?;
98 Ok(self)
99 }
100
101 pub fn template(mut self, template: String) -> Self {
102 self.template = template;

Callers 1

newMethod · 0.80

Calls 1

as_refMethod · 0.80

Tested by

no test coverage detected