pub enum AndroidAbi {
Arm64V8a,
ArmeabiV7a,
X86_64,
}Expand description
Android native CPU ABI supported by the NDK compilation pipeline.
Variants§
Arm64V8a
64-bit ARM (arm64-v8a / aarch64-linux-android).
ArmeabiV7a
32-bit ARMv7-A (armeabi-v7a / armv7-linux-androideabi).
X86_64
64-bit x86 (x86_64 / x86_64-linux-android).
Implementations§
Source§impl AndroidAbi
Toolchain mapping helpers for AndroidAbi.
impl AndroidAbi
Toolchain mapping helpers for AndroidAbi.
Sourcepub fn as_abi_dir(&self) -> &'static str
pub fn as_abi_dir(&self) -> &'static str
Returns the Android APK lib/<abi> directory name.
§Returns
&'static str- Android ABI directory name.
Sourcepub fn rust_triple(&self) -> &'static str
pub fn rust_triple(&self) -> &'static str
Returns the corresponding Rust compilation target triple.
§Returns
&'static str- Rust target triple.
Sourcepub fn clang_prefix(&self) -> &'static str
pub fn clang_prefix(&self) -> &'static str
Returns the Android NDK clang executable prefix prior to <api>-clang.
§Returns
&'static str- NDK clang target prefix.
Sourcepub fn cargo_env_triple(&self) -> &'static str
pub fn cargo_env_triple(&self) -> &'static str
Returns the underscore-delimited triple suffix used for CC_<triple> and AR_<triple>.
§Returns
&'static str- Lowercase underscore triple key.
Sourcepub fn cargo_linker_env(&self) -> &'static str
pub fn cargo_linker_env(&self) -> &'static str
Returns the Cargo target linker environment variable name for this ABI.
§Returns
&'static str-CARGO_TARGET_<TRIPLE>_LINKERvariable name.
Trait Implementations§
Source§impl Clone for AndroidAbi
impl Clone for AndroidAbi
impl Copy for AndroidAbi
Source§impl Debug for AndroidAbi
impl Debug for AndroidAbi
Source§impl Default for AndroidAbi
impl Default for AndroidAbi
Source§impl<'de> Deserialize<'de> for AndroidAbi
impl<'de> Deserialize<'de> for AndroidAbi
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AndroidAbi
Source§impl PartialEq for AndroidAbi
impl PartialEq for AndroidAbi
Source§impl Serialize for AndroidAbi
impl Serialize for AndroidAbi
impl StructuralPartialEq for AndroidAbi
Auto Trait Implementations§
impl Forget for AndroidAbi
impl Freeze for AndroidAbi
impl Move for AndroidAbi
impl RefUnwindSafe for AndroidAbi
impl Send for AndroidAbi
impl Sync for AndroidAbi
impl Unpin for AndroidAbi
impl UnsafeUnpin for AndroidAbi
impl UnwindSafe for AndroidAbi
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more