pub struct Target<'a> {
pub triple: &'a str,
pub abi: &'a str,
pub arch: &'a str,
/* private fields */
}
Fields§
§triple: &'a str
§abi: &'a str
§arch: &'a str
Implementations§
source§impl<'a> Target<'a>
impl<'a> Target<'a>
pub fn for_abi(abi: &str) -> Option<&'a Self>
pub fn arch_upper_camel_case(&'a self) -> &'a str
pub fn generate_cargo_config( &self, config: &Config, env: &Env, ) -> Result<DotCargoTarget, MissingToolError>
pub fn check( &self, config: &Config, metadata: &Metadata, env: &Env, noise_level: NoiseLevel, force_color: bool, ) -> Result<(), CompileLibError>
pub fn symlink_libs( &self, config: &Config, ndk: &Env, profile: Profile, ) -> Result<(), SymlinkLibsError>
pub fn build( &self, config: &Config, metadata: &Metadata, env: &Env, noise_level: NoiseLevel, force_color: bool, profile: Profile, ) -> Result<(), BuildError>
Trait Implementations§
source§impl<'a> Ord for Target<'a>
impl<'a> Ord for Target<'a>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'a> PartialOrd for Target<'a>
impl<'a> PartialOrd for Target<'a>
source§impl<'a> TargetTrait<'a> for Target<'a>
impl<'a> TargetTrait<'a> for Target<'a>
const DEFAULT_KEY: &'static str = "aarch64"
fn all() -> &'a BTreeMap<&'a str, Self>
fn name_list() -> Vec<&'a str>
fn triple(&'a self) -> &'a str
fn arch(&'a self) -> &'a str
fn default_ref() -> &'a Self
fn for_name(name: &str) -> Option<&'a Self>
fn for_arch(arch: &str) -> Option<&'a Self>
fn install(&'a self) -> Result<ExitStatus, Error>
fn install_all() -> Result<(), Error>where
Self: 'a,
impl<'a> Copy for Target<'a>
impl<'a> Eq for Target<'a>
impl<'a> StructuralPartialEq for Target<'a>
Auto Trait Implementations§
impl<'a> Freeze for Target<'a>
impl<'a> RefUnwindSafe for Target<'a>
impl<'a> Send for Target<'a>
impl<'a> Sync for Target<'a>
impl<'a> Unpin for Target<'a>
impl<'a> UnwindSafe for Target<'a>
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
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.