pub struct CompileArgs {
pub workspace: String,
pub input: String,
pub stage: Option<CompileStage>,
pub output: String,
/* private fields */
}Expand description
Compile arguments.
Fields§
§workspace: StringPath to workspace.
This is used to resolve imports in \iftypst blocks.
§Example
mitex compile -w '/my-workspace' main.texResolves /some-file.typ with /my-workspace/some-file.typ
\iftypst
#import "/some-file.typ"
\fiinput: String§stage: Option<CompileStage>Compile stage.
§Example
mitex compile --stage syntax main.tex§Example
mitex compile --stage document main.texoutput: StringOutput to file, default to entry file name with .typ extension.
§Example
mitex compile main.tex main.typ§Example
mitex compile -i main.tex -o main.typ§Example
mitex compile --stage syntax main.tex main.ast.txtTrait Implementations§
Source§impl Args for CompileArgs
impl Args for CompileArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for CompileArgs
impl Clone for CompileArgs
Source§fn clone(&self) -> CompileArgs
fn clone(&self) -> CompileArgs
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CommandFactory for CompileArgs
impl CommandFactory for CompileArgs
Source§impl Debug for CompileArgs
impl Debug for CompileArgs
Source§impl Default for CompileArgs
impl Default for CompileArgs
Source§fn default() -> CompileArgs
fn default() -> CompileArgs
Returns the “default value” for a type. Read more
Source§impl FromArgMatches for CompileArgs
impl FromArgMatches for CompileArgs
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 CompileArgs
impl Parser for CompileArgs
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)
Auto Trait Implementations§
impl Freeze for CompileArgs
impl RefUnwindSafe for CompileArgs
impl Send for CompileArgs
impl Sync for CompileArgs
impl Unpin for CompileArgs
impl UnwindSafe for CompileArgs
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