#[repr(u8)]pub enum Target {
ArmV7a = 1,
Arm64V8a = 2,
X86 = 3,
X86_64 = 4,
}Variants§
Implementations§
Source§impl 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§
Source§impl<'de> Deserialize<'de> for Target
impl<'de> Deserialize<'de> for Target
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 Copy for Target
impl Eq for Target
impl StructuralPartialEq for Target
Auto Trait Implementations§
impl Freeze for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnwindSafe for Target
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§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