Struct cargo_gazelle::targets::WorkspaceDependencies
source · struct WorkspaceDependencies<'a> {
config: &'a GlobalConfig,
package: &'a PackageMetadata<'a>,
}
Fields§
§config: &'a GlobalConfig
§package: &'a PackageMetadata<'a>
Implementations§
source§impl<'a> WorkspaceDependencies<'a>
impl<'a> WorkspaceDependencies<'a>
pub fn new(config: &'a GlobalConfig, package: &'a PackageMetadata<'a>) -> Self
sourcepub fn iter(
&self,
kind: DependencyKind,
proc_macro: bool,
) -> (BTreeSet<String>, BTreeMap<PlatformVariant, Vec<String>>)
pub fn iter( &self, kind: DependencyKind, proc_macro: bool, ) -> (BTreeSet<String>, BTreeMap<PlatformVariant, Vec<String>>)
Returns a set of dependencies that are common to all platforms, and then any additional dependencies that need to be enabled for a specific platform.
Auto Trait Implementations§
impl<'a> Freeze for WorkspaceDependencies<'a>
impl<'a> RefUnwindSafe for WorkspaceDependencies<'a>
impl<'a> Send for WorkspaceDependencies<'a>
impl<'a> Sync for WorkspaceDependencies<'a>
impl<'a> Unpin for WorkspaceDependencies<'a>
impl<'a> UnwindSafe for WorkspaceDependencies<'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