Target

Struct Target 

Source
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,
}
Expand description

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§

Source§

impl<'a> Target<'a>

Source

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

Returns all available Android targets.

Source

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

Returns a target configuration for the armeabi-v7a ABI.

Source

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

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).

Source

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

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

Source

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

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> Freeze for Target<'a>

§

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§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

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

Source§

fn vzip(self) -> V