Struct system_deps::Dependencies[][src]

pub struct Dependencies { /* fields omitted */ }

All the system dependencies retrieved by Config::probe.

Implementations

impl Dependencies[src]

pub fn get_by_name(&self, name: &str) -> Option<&Library>[src]

Retrieve details about a system dependency.

Arguments

  • name: the name of the toml key defining the dependency in Cargo.toml

pub fn iter(&self) -> impl Iterator<Item = (&str, &Library)>[src]

An iterator visiting all system dependencies in arbitrary order. The first element of the tuple is the name of the toml key defining the dependency in Cargo.toml.

pub fn all_libs(&self) -> impl Iterator<Item = &str>[src]

An iterator returning each Library::libs of each library, removing duplicates.

An iterator returning each Library::link_paths of each library, removing duplicates.

pub fn all_frameworks(&self) -> impl Iterator<Item = &str>[src]

An iterator returning each Library::frameworks of each library, removing duplicates.

pub fn all_framework_paths(&self) -> impl Iterator<Item = &PathBuf>[src]

An iterator returning each Library::framework_paths of each library, removing duplicates.

pub fn all_include_paths(&self) -> impl Iterator<Item = &PathBuf>[src]

An iterator returning each Library::include_paths of each library, removing duplicates.

pub fn all_defines(&self) -> impl Iterator<Item = (&str, &Option<String>)>[src]

An iterator returning each Library::defines of each library, removing duplicates.

Trait Implementations

impl Debug for Dependencies[src]

impl Default for Dependencies[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.