pub struct CodegenConfig {
pub rust_edition: String,
pub strict_rustfmt: bool,
pub macro_comments: bool,
pub emit_inline_fns: bool,
pub emit_macros: bool,
pub use_statements: Vec<String>,
pub dump_ast_for: Option<String>,
pub dump_types_for: Option<String>,
}Expand description
Codegen フェーズの設定
Fields§
§rust_edition: StringRust edition for rustfmt
strict_rustfmt: boolrustfmt 失敗時にエラー
macro_comments: boolマクロ定義位置コメント
emit_inline_fns: boolinline 関数を出力
emit_macros: boolマクロを出力
use_statements: Vec<String>ヘッダーに出力する use 文(空ならデフォルト)
dump_ast_for: Option<String>AST ダンプ対象関数名(デバッグ用)
dump_types_for: Option<String>型推論ダンプ対象関数名(デバッグ用)
Trait Implementations§
Source§impl Clone for CodegenConfig
impl Clone for CodegenConfig
Source§fn clone(&self) -> CodegenConfig
fn clone(&self) -> CodegenConfig
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 CodegenConfig
impl Debug for CodegenConfig
Auto Trait Implementations§
impl Freeze for CodegenConfig
impl RefUnwindSafe for CodegenConfig
impl Send for CodegenConfig
impl Sync for CodegenConfig
impl Unpin for CodegenConfig
impl UnsafeUnpin for CodegenConfig
impl UnwindSafe for CodegenConfig
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