pub struct PreprocessConfig {
pub input_file: PathBuf,
pub include_paths: Vec<PathBuf>,
pub defines: HashMap<String, Option<String>>,
pub target_dir: Option<PathBuf>,
pub emit_markers: bool,
pub wrapped_macros: Vec<String>,
pub collect_perlvars: bool,
pub debug_pp: bool,
}Expand description
Preprocessor フェーズの設定
Fields§
§input_file: PathBuf入力ファイル
include_paths: Vec<PathBuf>インクルードパス (-I)
defines: HashMap<String, Option<String>>プリプロセッサ定義 (-D)
target_dir: Option<PathBuf>ターゲットディレクトリ(Perl CORE)
emit_markers: boolマクロ展開マーカーを出力
wrapped_macros: Vec<String>ラップ対象マクロ(inline関数内で特別扱いするマクロ)
collect_perlvars: boolPERLVAR/PERLVARI/PERLVARA/PERLVARIC 呼び出しを観測して
PerlvarDict に集めるかどうか。
デフォルト true(opt-out)。生成される macro_bindings.rs の
末尾に PL_xxx!() 宣言マクロのセクションを追加する。
必要なければ with_perlvar_collection(false) で無効化できる。
debug_pp: boolデバッグ出力
Implementations§
Trait Implementations§
Source§impl Clone for PreprocessConfig
impl Clone for PreprocessConfig
Source§fn clone(&self) -> PreprocessConfig
fn clone(&self) -> PreprocessConfig
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 moreAuto Trait Implementations§
impl Freeze for PreprocessConfig
impl RefUnwindSafe for PreprocessConfig
impl Send for PreprocessConfig
impl Sync for PreprocessConfig
impl Unpin for PreprocessConfig
impl UnsafeUnpin for PreprocessConfig
impl UnwindSafe for PreprocessConfig
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