Struct cargo_toml::Filesystem
source · pub struct Filesystem<'a> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<'a> AbstractFilesystem for Filesystem<'a>
impl<'a> AbstractFilesystem for Filesystem<'a>
source§fn file_names_in(&self, rel_path: &str) -> Result<HashSet<Box<str>>>
fn file_names_in(&self, rel_path: &str) -> Result<HashSet<Box<str>>>
List all files and directories at the given relative path (no leading
/
).source§fn read_root_workspace(&self, path: Option<&str>) -> Result<(Vec<u8>, PathBuf)>
fn read_root_workspace(&self, path: Option<&str>) -> Result<(Vec<u8>, PathBuf)>
The
rel_path_hint
may be specified explicitly by package.workspace
(it may be relative like "../", without
Cargo.toml) or
None, which means you have to search for workspace's
Cargo.toml` in parent directories. Read moreAuto Trait Implementations§
impl<'a> RefUnwindSafe for Filesystem<'a>
impl<'a> Send for Filesystem<'a>
impl<'a> Sync for Filesystem<'a>
impl<'a> Unpin for Filesystem<'a>
impl<'a> UnwindSafe for Filesystem<'a>
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