pub struct Deps { /* private fields */ }Implementations§
Source§impl Deps
impl Deps
pub fn new() -> Self
pub fn push(&mut self, name: &'static str, prefix: PathBuf)
pub fn by_name(&self, name: &str) -> Option<&Dep>
Sourcepub fn cmake_prefix_path(&self) -> String
pub fn cmake_prefix_path(&self) -> String
Semicolon-joined list of dep prefixes, as cmake’s CMAKE_PREFIX_PATH expects.
Sourcepub fn emit_cargo_paths(&self)
pub fn emit_cargo_paths(&self)
Emit cargo:<name>_lib_dir=<prefix>/lib lines so rnp-rs can find
each dep’s static library at link time.
pub fn iter(&self) -> impl Iterator<Item = &Dep>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Deps
impl RefUnwindSafe for Deps
impl Send for Deps
impl Sync for Deps
impl Unpin for Deps
impl UnsafeUnpin for Deps
impl UnwindSafe for Deps
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