pub struct TargetInfo {
pub sysroot_libdir: Option<PathBuf>,
/* private fields */
}Fields§
§sysroot_libdir: Option<PathBuf>Implementations§
Source§impl TargetInfo
impl TargetInfo
pub fn new( config: &Config, requested_target: &Option<String>, rustc: &Rustc, kind: Kind, ) -> CargoResult<TargetInfo>
pub fn cfg(&self) -> Option<&[Cfg]>
pub fn file_types( &self, crate_type: &str, flavor: FileFlavor, kind: &TargetKind, target_triple: &str, ) -> CargoResult<Option<Vec<FileType>>>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for TargetInfo
impl !RefUnwindSafe for TargetInfo
impl !Sync for TargetInfo
impl Send for TargetInfo
impl Unpin for TargetInfo
impl UnsafeUnpin for TargetInfo
impl UnwindSafe for TargetInfo
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