#[repr(u8)]
pub enum Target {
ArmV7a,
Arm64V8a,
X86,
X86_64,
}
Variants
ArmV7a
Arm64V8a
X86
X86_64
Implementations
sourceimpl Target
impl Target
sourcepub fn android_abi(self) -> &'static str
pub fn android_abi(self) -> &'static str
Identifier used in the NDK to refer to the ABI
sourcepub fn from_android_abi(abi: &str) -> Result<Self, NdkError>
pub fn from_android_abi(abi: &str) -> Result<Self, NdkError>
Returns Target
for abi.
sourcepub fn rust_triple(self) -> &'static str
pub fn rust_triple(self) -> &'static str
Returns the triple used by the rust build tools
sourcepub fn from_rust_triple(triple: &str) -> Result<Self, NdkError>
pub fn from_rust_triple(triple: &str) -> Result<Self, NdkError>
Returns Target
for rust triple.
pub fn ndk_llvm_triple(self) -> &'static str
sourcepub fn ndk_triple(self) -> &'static str
pub fn ndk_triple(self) -> &'static str
Returns the triple used by the non-LLVM parts of the NDK
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Target
impl<'de> Deserialize<'de> for Target
sourcefn 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 Copy for Target
impl Eq for Target
impl StructuralEq for Target
impl StructuralPartialEq for Target
Auto Trait Implementations
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnwindSafe for Target
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more