[][src]Struct intel_mkl_tool::Entry

pub struct Entry { /* fields omitted */ }

Handler for found library

Implementations

impl Entry[src]

pub fn from_config(config: Config) -> Result<Self>[src]

Get the directory where the library exists

This will seek followings in this order:

  • $OUT_DIR
    • Only for build.rs
    • This exists only when the previous build downloads archive here
  • pkg-config ${name}
    • Installed by package manager or official downloader
  • $XDG_DATA_HOME/intel-mkl-tool/${name}
    • Downloaded by this crate

Returns error if no library found

pub fn name(&self) -> String[src]

pub fn found_files(&self) -> Vec<(PathBuf, String)>[src]

pub fn available() -> Vec<Self>[src]

pub fn version(&self) -> Result<(u32, u32)>[src]

Get MKL version info from its C header

  • This will not work for OUT_DIR or XDG_DATA_HOME entry, and returns Error in these cases

pub fn print_cargo_metadata(&self)[src]

impl Entry[src]

pub fn package(&self, out_dir: &Path) -> Result<PathBuf>[src]

Trait Implementations

impl Debug for Entry[src]

Auto Trait Implementations

impl RefUnwindSafe for Entry

impl Send for Entry

impl Sync for Entry

impl Unpin for Entry

impl UnwindSafe for Entry

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.