struct Declaration<'a> {
root_manifest: &'a Path,
root: &'a DocumentMut,
manifest: &'a Path,
consumer: &'a str,
dependency: &'a str,
alias: &'a str,
path: &'a Path,
kind: Option<&'a str>,
}Expand description
One member dependency as cargo metadata resolved it, to be located in
the manifests.
Fields§
§root_manifest: &'a Path§root: &'a DocumentMut§manifest: &'a Path§consumer: &'a str§dependency: &'a str§alias: &'a str§path: &'a Path§kind: Option<&'a str>Implementations§
Source§impl Declaration<'_>
impl Declaration<'_>
fn missing_source(&self) -> WorkspaceError
Sourcefn dependency_use(
&self,
table_path: Vec<String>,
item: &Item,
) -> Result<DependencyUse, WorkspaceError>
fn dependency_use( &self, table_path: Vec<String>, item: &Item, ) -> Result<DependencyUse, WorkspaceError>
The use declared by item at table_path, following workspace
inheritance to the entry that holds the requirement.
Auto Trait Implementations§
impl<'a> Freeze for Declaration<'a>
impl<'a> RefUnwindSafe for Declaration<'a>
impl<'a> Send for Declaration<'a>
impl<'a> Sync for Declaration<'a>
impl<'a> Unpin for Declaration<'a>
impl<'a> UnsafeUnpin for Declaration<'a>
impl<'a> UnwindSafe for Declaration<'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