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