Struct openblas_build::LibInspect
source · pub struct LibInspect {
pub libs: Vec<String>,
pub symbols: Vec<String>,
}
Expand description
Library inspection using binutils (nm
and objdump
) as external command
- Linked shared libraries using
objdump -p
external command. - Global “T” symbols in the text (code) section of library using
nm -g
external command.
Fields§
§libs: Vec<String>
§symbols: Vec<String>
Implementations§
source§impl LibInspect
impl LibInspect
sourcepub fn new<P: AsRef<Path>>(path: P) -> Result<Self, Error>
pub fn new<P: AsRef<Path>>(path: P) -> Result<Self, Error>
Inspect library file
Be sure that nm -g
and objdump -p
are executed in this function
pub fn has_cblas(&self) -> bool
pub fn has_lapack(&self) -> bool
pub fn has_lapacke(&self) -> bool
pub fn has_lib(&self, name: &str) -> bool
Trait Implementations§
source§impl Clone for LibInspect
impl Clone for LibInspect
source§fn clone(&self) -> LibInspect
fn clone(&self) -> LibInspect
Returns a copy 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 moreAuto Trait Implementations§
impl RefUnwindSafe for LibInspect
impl Send for LibInspect
impl Sync for LibInspect
impl Unpin for LibInspect
impl UnwindSafe for LibInspect
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