pub struct Env { /* private fields */ }
Implementations§
source§impl Env
impl Env
pub fn new() -> Result<Self, Error>
pub fn home(&self) -> &Path
pub fn version(&self) -> Result<Revision, Error>
pub fn prebuilt_dir(&self) -> Result<PathBuf, MissingToolError>
pub fn tool_dir(&self) -> Result<PathBuf, MissingToolError>
pub fn compiler_path( &self, compiler: Compiler, triple: &str, min_api: u32, ) -> Result<PathBuf, MissingToolError>
pub fn binutil_path( &self, binutil: Binutil, triple: &str, ) -> Result<PathBuf, MissingToolError>
pub fn ar_path(&self, triple: &str) -> Result<PathBuf, MissingToolError>
pub fn required_libs( &self, elf: &Path, triple: &str, ) -> Result<HashSet<String>, RequiredLibsError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Env
impl RefUnwindSafe for Env
impl Send for Env
impl Sync for Env
impl Unpin for Env
impl UnwindSafe for Env
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)