Struct rustc_session::search_paths::SearchPath
source · pub struct SearchPath {
pub kind: PathKind,
pub dir: PathBuf,
pub files: Vec<SearchPathFile>,
}
Fields
kind: PathKind
dir: PathBuf
files: Vec<SearchPathFile>
Implementations
sourceimpl SearchPath
impl SearchPath
pub fn from_cli_opt(path: &str, output: ErrorOutputType) -> Self
pub fn from_sysroot_and_triple(sysroot: &Path, triple: &str) -> Self
fn new(kind: PathKind, dir: PathBuf) -> Self
Trait Implementations
sourceimpl Clone for SearchPath
impl Clone for SearchPath
sourcefn clone(&self) -> SearchPath
fn clone(&self) -> SearchPath
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for SearchPath
impl Send for SearchPath
impl Sync for SearchPath
impl Unpin for SearchPath
impl UnwindSafe for SearchPath
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 56 bytes