MCPcopy Create free account
hub / github.com/bedroombuilds/python2rust / FileManager

Class FileManager

14_context_manager/rust/context_manager.rs:4–8  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2use std::io::{self, Write};
3
4struct FileManager {
5 filename: std::path::PathBuf,
6 mode: char,
7 file: Option<File>,
8}
9
10impl FileManager {
11 fn new(filename: impl AsRef<std::path::Path>, mode: char) -> FileManager {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected