pub struct Rpath<'a> { /* private fields */ }
Expand description
Structure that represents a dynamic entry associated with the rpath info
Implementations§
§impl Rpath<'_>
impl Rpath<'_>
pub fn new(value: &str) -> Rpath<'static>
pub fn new(value: &str) -> Rpath<'static>
Create a new Rpath entry with the given path(s)
For instance:
Rpath::new("$ORIGIN/../:/lib64")
pub fn with_paths(values: &[&str]) -> Rpath<'static>
pub fn with_paths(values: &[&str]) -> Rpath<'static>
Create a new Rpath entry from a slice of paths
For instance:
Rpath::with_paths(&vec!["$ORIGIN/../", "/lib64"])
pub fn set_rpath_with_value(&mut self, values: &[&str])
pub fn set_rpath_with_value(&mut self, values: &[&str])
Change the rpath value with the given slice
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Rpath<'a>
impl<'a> !Send for Rpath<'a>
impl<'a> !Sync for Rpath<'a>
impl<'a> Unpin for Rpath<'a>
impl<'a> !UnwindSafe for Rpath<'a>
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