Struct forc_pkg::manifest::WorkspaceManifestFile
source · [−]pub struct WorkspaceManifestFile { /* private fields */ }
Expand description
A WorkspaceManifest that was deserialized from a file at a particular path.
Implementations
sourceimpl WorkspaceManifestFile
impl WorkspaceManifestFile
sourcepub fn from_file(path: PathBuf) -> Result<Self>
pub fn from_file(path: PathBuf) -> Result<Self>
Given a path to a Forc.toml
, read it and construct a PackageManifest
This also validate
s the manifest, returning an Err
in the case that given members are
not present in the manifest dir.
sourcepub fn from_dir(manifest_dir: &Path) -> Result<Self>
pub fn from_dir(manifest_dir: &Path) -> Result<Self>
Read the manifest from the Forc.toml
in the directory specified by the given path
or
any of its parent directories.
This is short for PackageManifest::from_file
, but takes care of constructing the path to the
file.
pub fn members(&self) -> impl Iterator<Item = &String> + '_
pub fn member_paths(&self) -> Result<impl Iterator<Item = PathBuf> + '_>
Methods from Deref<Target = WorkspaceManifest>
Trait Implementations
sourceimpl Clone for WorkspaceManifestFile
impl Clone for WorkspaceManifestFile
sourcefn clone(&self) -> WorkspaceManifestFile
fn clone(&self) -> WorkspaceManifestFile
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for WorkspaceManifestFile
impl Debug for WorkspaceManifestFile
sourceimpl Deref for WorkspaceManifestFile
impl Deref for WorkspaceManifestFile
type Target = WorkspaceManifest
type Target = WorkspaceManifest
The resulting type after dereferencing.
Auto Trait Implementations
impl RefUnwindSafe for WorkspaceManifestFile
impl Send for WorkspaceManifestFile
impl Sync for WorkspaceManifestFile
impl Unpin for WorkspaceManifestFile
impl UnwindSafe for WorkspaceManifestFile
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more