Struct retdec::analysis::AnalysisArguments
[−]
[src]
pub struct AnalysisArguments { /* fields omitted */ }
Arguments for a file analysis.
Examples
use retdec::analysis::AnalysisArguments; use retdec::file::File; let args = AnalysisArguments::new() .with_output_format("json") .with_verbose(true) .with_input_file(File::from_path("file.exe")?);
Methods
impl AnalysisArguments
[src]
fn new() -> Self
Returns new arguments initialized to default values.
fn with_output_format<F>(self, output_format: F) -> Self where
F: Into<String>,
F: Into<String>,
Sets the format of the output from the analysis.
Available values are: plain
(default), json
.
fn with_verbose(self, verbose: bool) -> Self
Should the analysis return all available information about the file?
By default, the analysis returns only an abridged version.
fn with_input_file(self, input_file: File) -> Self
Sets the file to be analyzed.
This parameter is required. Without it, there is nothing to analyze.
fn set_output_format<F>(&mut self, output_format: F) where
F: Into<String>,
F: Into<String>,
Sets the format of the output from the analysis.
Available values are: plain
(default), json
.
fn set_verbose(&mut self, verbose: bool)
Should the analysis return all available information about the file?
By default, the analysis returns only an abridged version.
fn set_input_file(&mut self, input_file: File)
Sets the file to be analyzed.
This parameter is required. Without it, there is nothing to analyze.
fn output_format(&self) -> Option<&String>
Returns the output format.
fn verbose(&self) -> Option<bool>
Returns whether the analysis should return all available information about the file.
fn input_file(&self) -> Option<&File>
Returns the the file to be analyzed.
fn take_output_format(&mut self) -> Option<String>
Takes ownership of the output format and sets it to None
.
fn take_input_file(&mut self) -> Option<File>
Takes ownership of the input file and sets it to None
.
Trait Implementations
impl Clone for AnalysisArguments
[src]
fn clone(&self) -> AnalysisArguments
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for AnalysisArguments
[src]
impl Default for AnalysisArguments
[src]
fn default() -> AnalysisArguments
Returns the "default value" for a type. Read more