Struct system_deps::Dependencies
source · pub struct Dependencies { /* private fields */ }
Expand description
All the system dependencies retrieved by Config::probe.
Implementations§
source§impl Dependencies
impl Dependencies
sourcepub fn get_by_name(&self, name: &str) -> Option<&Library>
pub fn get_by_name(&self, name: &str) -> Option<&Library>
Retrieve details about a system dependency.
§Arguments
name
: the name of thetoml
key defining the dependency inCargo.toml
sourcepub fn iter(&self) -> Vec<(&str, &Library)>
pub fn iter(&self) -> Vec<(&str, &Library)>
A vector listing all system dependencies in sorted (for build reproducibility) order.
The first element of the tuple is the name of the toml
key defining the
dependency in Cargo.toml
.
sourcepub fn all_libs(&self) -> Vec<&str>
pub fn all_libs(&self) -> Vec<&str>
Returns a vector of Library::libs of each library, removing duplicates.
sourcepub fn all_link_paths(&self) -> Vec<&PathBuf>
pub fn all_link_paths(&self) -> Vec<&PathBuf>
Returns a vector of Library::link_paths of each library, removing duplicates.
sourcepub fn all_frameworks(&self) -> Vec<&str>
pub fn all_frameworks(&self) -> Vec<&str>
Returns a vector of Library::frameworks of each library, removing duplicates.
sourcepub fn all_framework_paths(&self) -> Vec<&PathBuf>
pub fn all_framework_paths(&self) -> Vec<&PathBuf>
Returns a vector of Library::framework_paths of each library, removing duplicates.
sourcepub fn all_include_paths(&self) -> Vec<&PathBuf>
pub fn all_include_paths(&self) -> Vec<&PathBuf>
Returns a vector of Library::include_paths of each library, removing duplicates.
sourcepub fn all_defines(&self) -> Vec<(&str, &Option<String>)>
pub fn all_defines(&self) -> Vec<(&str, &Option<String>)>
Returns a vector of Library::defines of each library, removing duplicates.
Trait Implementations§
source§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
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