pub struct Dependencies {
pub windows_features: BTreeSet<String>,
pub windows_libraries: BTreeSet<String>,
pub package: BTreeSet<PackageDependencies>,
pub external: BTreeSet<String>,
}Fields§
§windows_features: BTreeSet<String>List of Windows feature dependencies
windows_libraries: BTreeSet<String>List of Windows library dependencies
package: BTreeSet<PackageDependencies>List of package dependencies from current source
external: BTreeSet<String>List of external package dependencies
Implementations§
Source§impl Dependencies
impl Dependencies
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true if all the dependency fields are empty.
§Examples
let mut dependencies = Dependencies {
windows_features: BTreeSet::new(),
windows_libraries: BTreeSet::new(),
package: BTreeSet::new(),
external: BTreeSet::new(),
};
assert!(dependencies.is_empty());
dependencies.package.insert(PackageDependencies::new(PackageIdentifier::new("Git.Git")?));
assert!(!dependencies.is_empty());Trait Implementations§
Source§impl Clone for Dependencies
impl Clone for Dependencies
Source§fn clone(&self) -> Dependencies
fn clone(&self) -> Dependencies
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Dependencies
impl Debug for Dependencies
Source§impl Default for Dependencies
impl Default for Dependencies
Source§fn default() -> Dependencies
fn default() -> Dependencies
Returns the “default value” for a type. Read more
Source§impl Hash for Dependencies
impl Hash for Dependencies
Source§impl Ord for Dependencies
impl Ord for Dependencies
Source§fn cmp(&self, other: &Dependencies) -> Ordering
fn cmp(&self, other: &Dependencies) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Dependencies
impl PartialEq for Dependencies
Source§impl PartialOrd for Dependencies
impl PartialOrd for Dependencies
impl Eq for Dependencies
impl StructuralPartialEq for Dependencies
Auto Trait Implementations§
impl Freeze for Dependencies
impl RefUnwindSafe for Dependencies
impl Send for Dependencies
impl Sync for Dependencies
impl Unpin for Dependencies
impl UnwindSafe for Dependencies
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more