pub struct PlatformLine { /* private fields */ }Expand description
Soname prefixes the host is expected to provide.
Implementations§
Source§impl PlatformLine
impl PlatformLine
pub fn load(path: &Path) -> Result<Self>
pub fn from_prefixes(prefixes: Vec<String>) -> Self
pub fn prefixes(&self) -> &[String]
Sourcepub fn matches(&self, rel: &str) -> bool
pub fn matches(&self, rel: &str) -> bool
Whether the file at rel is on the platform line, by basename.
Sourcepub fn matches_soname(&self, soname: &str) -> bool
pub fn matches_soname(&self, soname: &str) -> bool
Whether soname is on the platform line.
Trait Implementations§
Source§impl Clone for PlatformLine
impl Clone for PlatformLine
Source§impl Debug for PlatformLine
impl Debug for PlatformLine
Auto Trait Implementations§
impl Forget for PlatformLine
impl Freeze for PlatformLine
impl Move for PlatformLine
impl RefUnwindSafe for PlatformLine
impl Send for PlatformLine
impl Sync for PlatformLine
impl Unpin for PlatformLine
impl UnsafeUnpin for PlatformLine
impl UnwindSafe for PlatformLine
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