pub enum HarmonyAbi {
Arm64V8a,
X86_64,
}Expand description
OpenHarmony native CPU ABI supported by N-API/XComponent/EGL compilation.
Variants§
Arm64V8a
64-bit ARM (arm64-v8a / aarch64-unknown-linux-ohos).
X86_64
64-bit x86 (x86_64 / x86_64-unknown-linux-ohos).
Implementations§
Source§impl HarmonyAbi
Toolchain mapping helpers for HarmonyAbi.
impl HarmonyAbi
Toolchain mapping helpers for HarmonyAbi.
Sourcepub fn as_abi_dir(&self) -> &'static str
pub fn as_abi_dir(&self) -> &'static str
Returns the OpenHarmony entry/libs/<abi> directory name.
§Returns
&'static str-"arm64-v8a"or"x86_64".
Sourcepub fn rust_triple(&self) -> &'static str
pub fn rust_triple(&self) -> &'static str
Returns the Rust compilation target triple for OpenHarmony.
§Returns
&'static str- OpenHarmony Rust target triple.
Sourcepub fn clang_triple(&self) -> &'static str
pub fn clang_triple(&self) -> &'static str
Sourcepub fn env_triple(&self) -> &'static str
pub fn env_triple(&self) -> &'static str
Returns the lowercase underscore suffix for CC_<triple>.
§Returns
&'static str- Lowercase Cargo env 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 OHOS ABI.
§Returns
&'static str-CARGO_TARGET_<TRIPLE>_LINKERvariable name.
Trait Implementations§
Source§impl Clone for HarmonyAbi
impl Clone for HarmonyAbi
impl Copy for HarmonyAbi
Source§impl Debug for HarmonyAbi
impl Debug for HarmonyAbi
Source§impl Default for HarmonyAbi
impl Default for HarmonyAbi
Source§impl<'de> Deserialize<'de> for HarmonyAbi
impl<'de> Deserialize<'de> for HarmonyAbi
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 HarmonyAbi
Source§impl PartialEq for HarmonyAbi
impl PartialEq for HarmonyAbi
Source§impl Serialize for HarmonyAbi
impl Serialize for HarmonyAbi
impl StructuralPartialEq for HarmonyAbi
Auto Trait Implementations§
impl Forget for HarmonyAbi
impl Freeze for HarmonyAbi
impl Move for HarmonyAbi
impl RefUnwindSafe for HarmonyAbi
impl Send for HarmonyAbi
impl Sync for HarmonyAbi
impl Unpin for HarmonyAbi
impl UnsafeUnpin for HarmonyAbi
impl UnwindSafe for HarmonyAbi
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