pub struct CompileOptions {
pub circuits: bool,
pub texlabels: bool,
pub base: Option<PathBuf>,
pub includes: IncludePolicy,
}Expand description
Compile options for the *_with_options entry points — the library
equivalents of the CLI flags. Preludes (circuits, texlabels) are lexed
as their own named source units, NOT glued in front of the user’s source,
so diagnostic positions always stay relative to the source they belong to
(Diagnostic::file names an include/library; None is the user’s input).
Fields§
§circuits: boolLoad the embedded circuit-element library (the -c flag).
texlabels: boolInject texlabels = 1 as an initializer (the -t flag); the source
can still override it.
base: Option<PathBuf>Resolve copy "file" includes relative to this directory.
includes: IncludePolicyPolicy for copy "file" filesystem includes — leave the default
(Unrestricted, the CLI behavior) for local use; embedders compiling
untrusted source should pick SandboxedToBase or Deny.
Trait Implementations§
Source§impl Clone for CompileOptions
impl Clone for CompileOptions
Source§fn clone(&self) -> CompileOptions
fn clone(&self) -> CompileOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompileOptions
impl Debug for CompileOptions
Source§impl Default for CompileOptions
impl Default for CompileOptions
Source§fn default() -> CompileOptions
fn default() -> CompileOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CompileOptions
impl RefUnwindSafe for CompileOptions
impl Send for CompileOptions
impl Sync for CompileOptions
impl Unpin for CompileOptions
impl UnsafeUnpin for CompileOptions
impl UnwindSafe for CompileOptions
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