[−][src]Struct cargo_edit::LocalManifest
A Cargo manifest that is available locally.
Fields
path: PathBufPath to the manifest
Methods
impl LocalManifest[src]
pub fn find(path: &Option<PathBuf>) -> Result<Self>[src]
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]
Construct the LocalManifest corresponding to the Path provided.
pub fn upgrade(&mut self, dependency: &Dependency, dry_run: bool) -> Result<()>[src]
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]
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]
Overwrite a file with TOML data.
Trait Implementations
impl Debug for LocalManifest[src]
impl Deref for LocalManifest[src]
Auto Trait Implementations
impl Send for LocalManifest
impl Sync for LocalManifest
impl Unpin for LocalManifest
impl UnwindSafe for LocalManifest
impl RefUnwindSafe for LocalManifest
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,