[][src]Struct polyhorn_cli::android::Target

pub struct Target<'a> {
    pub abi: &'a str,
    pub llvm_triple: &'a str,
    pub ar: &'a str,
    pub cc: &'a str,
    pub cxx: &'a str,
    pub linker: &'a str,
}

Represents a Android ABI target that is used to build for an Android device with a specific CPU and instruction set.

Fields

abi: &'a str

This is the name for the ABI that Android uses internally (e.g. in jniLibs).

llvm_triple: &'a str

This is the name of the target that llvm/rustc uses.

ar: &'a str

This is the name of the archiver utility shipped with the NDK.

cc: &'a str

This is the name of the C compiler shipped with the NDK.

cxx: &'a str

This is the name of the C++ compiler shipped with the NDK.

linker: &'a str

This is the name of the linker shipped with the NDK.

Implementations

impl<'a> Target<'a>[src]

pub const fn all() -> &'static [Target<'static>][src]

Returns all available Android targets.

pub const fn armeabi_v7a() -> Target<'static>[src]

Returns a target configuration for the armeabi-v7a ABI.

pub const fn arm64_v8a() -> Target<'static>[src]

Returns a target configuration for the arm64-v8a ABI (also known as aarch64). This target has been available since API level 21 (the first version of Android to support 64-bit architectures).

pub const fn x86() -> Target<'static>[src]

Returns a target configuration for the x86 ABI (also known as i686).

pub const fn x86_64() -> Target<'static>[src]

Returns a target configuration for the x86_64 ABI. This target has been available since API level 21 (the first version of Android to support 64-bit architectures).

Auto Trait Implementations

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,