Struct cargo_edit::LocalManifest [−][src]
pub struct LocalManifest { /* fields omitted */ }
A Cargo manifest that is available locally.
Methods
impl LocalManifest
[src]
impl LocalManifest
pub fn find(path: &Option<PathBuf>) -> Result<Self>
[src]
pub fn find(path: &Option<PathBuf>) -> Result<Self>
Construct a LocalManifest
. If no path is provided, make an educated guess as to which one
the user means.
pub fn try_new(path: &Path) -> Result<Self>
[src]
pub fn try_new(path: &Path) -> Result<Self>
Construct the LocalManifest
corresponding to the Path
provided.
pub fn upgrade(&mut self, dependency: &Dependency, dry_run: bool) -> Result<()>
[src]
pub fn upgrade(&mut self, dependency: &Dependency, dry_run: bool) -> Result<()>
Instruct this manifest to upgrade a single dependency. If this manifest does not have that dependency, it does nothing.
Methods from Deref<Target = Manifest>
pub fn get_sections(&self) -> Vec<(Vec<String>, Item)>
[src]
pub fn get_sections(&self) -> Vec<(Vec<String>, Item)>
Get all sections in the manifest that exist and might contain dependencies.
The returned items are always Table
or InlineTable
.
pub fn write_to_file(&self, file: &mut File) -> Result<()>
[src]
pub fn write_to_file(&self, file: &mut File) -> Result<()>
Overwrite a file with TOML data.
Trait Implementations
impl Debug for LocalManifest
[src]
impl Debug for LocalManifest
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Deref for LocalManifest
[src]
impl Deref for LocalManifest
Auto Trait Implementations
impl Send for LocalManifest
impl Send for LocalManifest
impl Sync for LocalManifest
impl Sync for LocalManifest