Trait GenericManifestFile

Source
pub trait GenericManifestFile {
    // Required methods
    fn from_file<P: AsRef<Path>>(path: P) -> Result<Self>
       where Self: Sized;
    fn from_dir<P: AsRef<Path>>(dir: P) -> Result<Self>
       where Self: Sized;
    fn path(&self) -> &Path;
    fn lock_path(&self) -> Result<PathBuf>;
    fn member_manifests(&self) -> Result<MemberManifestFiles>;

    // Provided method
    fn dir(&self) -> &Path { ... }
}

Required Methods§

Source

fn from_file<P: AsRef<Path>>(path: P) -> Result<Self>
where Self: Sized,

Source

fn from_dir<P: AsRef<Path>>(dir: P) -> Result<Self>
where Self: Sized,

Source

fn path(&self) -> &Path

The path to the Forc.toml from which this manifest was loaded.

This will always be a canonical path.

Source

fn lock_path(&self) -> Result<PathBuf>

Returns the path of the Forc.lock file.

Source

fn member_manifests(&self) -> Result<MemberManifestFiles>

Returns a mapping of member member names to package manifest files.

Provided Methods§

Source

fn dir(&self) -> &Path

The path to the directory containing the Forc.toml from which this manifest was loaded.

This will always be a canonical path.

Implementors§