pub struct InferConfig {
pub input_file: PathBuf,
pub apidoc_path: Option<PathBuf>,
pub bindings_path: Option<PathBuf>,
pub apidoc_dir: Option<PathBuf>,
pub debug: bool,
}Expand description
型推論の設定
Fields§
§input_file: PathBuf入力ファイル(wrapper.h など)
apidoc_path: Option<PathBuf>apidoc ファイルのパス(省略時は自動検索)
bindings_path: Option<PathBuf>Rust バインディングファイルのパス
apidoc_dir: Option<PathBuf>apidoc ディレクトリの検索パス(省略時は自動検索)
debug: boolデバッグ出力
Implementations§
Source§impl InferConfig
impl InferConfig
Sourcepub fn with_apidoc(self, path: PathBuf) -> Self
pub fn with_apidoc(self, path: PathBuf) -> Self
apidoc パスを設定
Sourcepub fn with_bindings(self, path: PathBuf) -> Self
pub fn with_bindings(self, path: PathBuf) -> Self
bindings パスを設定
Sourcepub fn with_apidoc_dir(self, path: PathBuf) -> Self
pub fn with_apidoc_dir(self, path: PathBuf) -> Self
apidoc ディレクトリを設定
Sourcepub fn with_debug(self, debug: bool) -> Self
pub fn with_debug(self, debug: bool) -> Self
デバッグモードを設定
Trait Implementations§
Source§impl Clone for InferConfig
impl Clone for InferConfig
Source§fn clone(&self) -> InferConfig
fn clone(&self) -> InferConfig
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 InferConfig
impl RefUnwindSafe for InferConfig
impl Send for InferConfig
impl Sync for InferConfig
impl Unpin for InferConfig
impl UnsafeUnpin for InferConfig
impl UnwindSafe for InferConfig
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