pub struct BuildPathResolver { /* private fields */ }Expand description
Utility for resolving relative paths within the build directory.
Implementations§
Source§impl BuildPathResolver
impl BuildPathResolver
Sourcepub fn new(root: impl Into<PathBuf>, out: impl Into<PathBuf>) -> Self
pub fn new(root: impl Into<PathBuf>, out: impl Into<PathBuf>) -> Self
Create a resolver anchored at root with output in out.
Sourcepub fn source_path(&self, rel: &str) -> PathBuf
pub fn source_path(&self, rel: &str) -> PathBuf
Source path relative to root.
Sourcepub fn output_path(&self, rel: &str) -> PathBuf
pub fn output_path(&self, rel: &str) -> PathBuf
Output path relative to out directory.
Sourcepub fn object_path(&self, module: &str) -> PathBuf
pub fn object_path(&self, module: &str) -> PathBuf
Object file path for a given module name.
Sourcepub fn interface_path(&self, module: &str) -> PathBuf
pub fn interface_path(&self, module: &str) -> PathBuf
Interface file path for a given module name.
Auto Trait Implementations§
impl Freeze for BuildPathResolver
impl RefUnwindSafe for BuildPathResolver
impl Send for BuildPathResolver
impl Sync for BuildPathResolver
impl Unpin for BuildPathResolver
impl UnsafeUnpin for BuildPathResolver
impl UnwindSafe for BuildPathResolver
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