Skip to main content

InferResult

Struct InferResult 

Source
pub struct InferResult {
Show 14 fields pub infer_ctx: MacroInferContext, pub fields_dict: FieldsDict, pub enum_dict: EnumDict, pub inline_fn_dict: InlineFnDict, pub apidoc: ApidocDict, pub rust_decl_dict: Option<RustDeclDict>, pub c_fn_decl_dict: CFnDeclDict, pub typedefs: TypedefDict, pub global_const_dict: GlobalConstDict, pub apidoc_patches: ApidocPatchSet, pub perl_build_mode: PerlBuildMode, pub perlvar_dict: PerlvarDict, pub preprocessor: Preprocessor, pub stats: InferStats,
}
Expand description

型推論の結果

Fields§

§infer_ctx: MacroInferContext

マクロ推論コンテキスト(全マクロの解析結果)

§fields_dict: FieldsDict

フィールド辞書

§enum_dict: EnumDict

Enum 辞書

§inline_fn_dict: InlineFnDict

インライン関数辞書

§apidoc: ApidocDict

Apidoc 辞書

§rust_decl_dict: Option<RustDeclDict>

Rust 宣言辞書

§c_fn_decl_dict: CFnDeclDict

C 関数宣言辞書

§typedefs: TypedefDict

typedef 辞書

§global_const_dict: GlobalConstDict

global static const 配列宣言辞書(bodies_by_type 等)

§apidoc_patches: ApidocPatchSet

apidoc patches(perl C ヘッダ既知バグの訂正データ)

§perl_build_mode: PerlBuildMode

対象 perl の build mode(threaded / non-threaded)

§perlvar_dict: PerlvarDict

PERLVAR 観測辞書 (Phase 1 で収集、Phase 3 で PL_xxx!() 出力に使う)。 Pipeline で with_perlvar_collection(false) した場合は空。

§preprocessor: Preprocessor

プリプロセッサ(マクロテーブル、StringInterner、FileRegistry へのアクセス用)

§stats: InferStats

統計情報

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.