Struct Aapt2Dump

Source
pub struct Aapt2Dump { /* private fields */ }
Expand description

§Dump

Dump is used for printing information about the APK you generated using the link command. For example, the following command prints content from the resource table of the specified APK:

`aapt2 dump resources output.apk`

§Dump syntax

The general syntax for using dump is as follows:

`aapt2 dump sub-command filename.apk [options]`

Implementations§

Source§

impl Aapt2Dump

Source

pub fn new(subcommand: SubCommand, filename_apk: &Path) -> Self

Initialize aapt2 dump then specifies subcommand and apk file

Source

pub fn no_values(&mut self, no_values: bool) -> &mut Self

Suppresses the output of values when displaying resource

Source

pub fn dumped_file(&mut self, dumped_file: &Path) -> &mut Self

Specifies a file as an argument to be dumped from the APK

Source

pub fn verbose(&mut self, verbose: bool) -> &mut Self

Increases verbosity of the output

Source

pub fn help(&mut self, help: bool) -> &mut Self

Displays help menu

Source

pub fn run(&self) -> Result<()>

Executes aapt2 dump with arguments

Trait Implementations§

Source§

impl Default for Aapt2Dump

Source§

fn default() -> Aapt2Dump

Returns the “default value” for a type. Read more

Auto Trait Implementations§

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, 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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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