Struct edlang_driver::CompilerArgs
source · pub struct CompilerArgs {
pub input: PathBuf,
pub output: PathBuf,
pub release: bool,
pub optlevel: Option<u8>,
pub debug_info: Option<bool>,
pub library: bool,
pub ast: bool,
pub ir: bool,
pub llvm: bool,
pub asm: bool,
pub object: bool,
}
Fields§
§input: PathBuf
The input file.
output: PathBuf
The output file.
release: bool
Build for release with all optimizations.
optlevel: Option<u8>
Set the optimization level, 0,1,2,3
debug_info: Option<bool>
Always add debug info
library: bool
Build as a library.
ast: bool
Print the edlang AST
ir: bool
Print the edlang IR
llvm: bool
Output llvm ir
asm: bool
Output asm
object: bool
Output a object file
Trait Implementations§
source§impl Args for CompilerArgs
impl Args for CompilerArgs
source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
source§impl CommandFactory for CompilerArgs
impl CommandFactory for CompilerArgs
source§impl Debug for CompilerArgs
impl Debug for CompilerArgs
source§impl FromArgMatches for CompilerArgs
impl FromArgMatches for CompilerArgs
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.source§impl Parser for CompilerArgs
impl Parser for CompilerArgs
source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Update from iterator, exit on error.
Auto Trait Implementations§
impl RefUnwindSafe for CompilerArgs
impl Send for CompilerArgs
impl Sync for CompilerArgs
impl Unpin for CompilerArgs
impl UnwindSafe for CompilerArgs
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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