Struct cargo_toml::Filesystem
source · pub struct Filesystem<'a> { /* private fields */ }
Expand description
AbstractFilesystem
implementation for real files.
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 parse_root_workspace(
&self,
path: Option<&str>,
) -> Result<(Manifest<Value>, PathBuf), Error>
fn parse_root_workspace( &self, path: Option<&str>, ) -> Result<(Manifest<Value>, PathBuf), Error>
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> Freeze for Filesystem<'a>
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