pub struct Reader<'a> { /* private fields */ }

Implementations§

source§

impl<'a> Reader<'a>

source

pub fn new(files: &'a [File]) -> Self

source

pub fn tree(&'a self, root: &'a str, filter: &Filter<'_>) -> Tree<'_>

source

pub fn namespace_types( &'a self, namespace: &str, filter: &'a Filter<'_> ) -> impl Iterator<Item = TypeDef> + '_

source

pub fn nested_types( &self, type_def: TypeDef ) -> impl Iterator<Item = TypeDef> + '_

source

pub fn get(&self, type_name: TypeName<'_>) -> impl Iterator<Item = TypeDef> + '_

source

pub fn row_blob(&self, key: Row, column: usize) -> Blob<'_>

source

pub fn attribute_name(&self, row: Attribute) -> &str

source

pub fn attribute_args(&self, row: Attribute) -> Vec<(String, Value)>

source

pub fn class_layout_packing_size(&self, row: ClassLayout) -> usize

source

pub fn constant_type(&self, row: Constant) -> Type

source

pub fn constant_value(&self, row: Constant) -> Value

source

pub fn field_flags(&self, row: Field) -> FieldAttributes

source

pub fn field_name(&self, row: Field) -> &str

source

pub fn field_constant(&self, row: Field) -> Option<Constant>

source

pub fn field_attributes(&self, row: Field) -> impl Iterator<Item = Attribute>

source

pub fn field_is_const(&self, row: Field) -> bool

source

pub fn field_type(&self, row: Field, enclosing: Option<TypeDef>) -> Type

source

pub fn field_is_blittable(&self, row: Field, enclosing: TypeDef) -> bool

source

pub fn field_is_copyable(&self, row: Field, enclosing: TypeDef) -> bool

source

pub fn field_guid(&self, row: Field) -> Option<GUID>

source

pub fn field_cfg(&self, row: Field) -> Cfg<'_>

source

pub fn field_is_ansi(&self, row: Field) -> bool

source

pub fn generic_param_name(&self, row: GenericParam) -> &str

source

pub fn impl_map_flags(&self, row: ImplMap) -> PInvokeAttributes

source

pub fn impl_map_scope(&self, row: ImplMap) -> ModuleRef

source

pub fn interface_impl_attributes( &self, row: InterfaceImpl ) -> impl Iterator<Item = Attribute>

source

pub fn interface_impl_is_default(&self, row: InterfaceImpl) -> bool

source

pub fn interface_impl_is_overridable(&self, row: InterfaceImpl) -> bool

source

pub fn interface_impl_type( &self, row: InterfaceImpl, generics: &[Type] ) -> Interface

source

pub fn member_ref_parent(&self, row: MemberRef) -> MemberRefParent

source

pub fn member_ref_signature(&self, row: MemberRef) -> Blob<'_>

source

pub fn method_def_impl_flags(&self, row: MethodDef) -> MethodImplAttributes

source

pub fn method_def_flags(&self, row: MethodDef) -> MethodAttributes

source

pub fn method_def_name(&self, row: MethodDef) -> &str

source

pub fn method_def_params(&self, row: MethodDef) -> impl Iterator<Item = Param>

source

pub fn method_def_attributes( &self, row: MethodDef ) -> impl Iterator<Item = Attribute>

source

pub fn method_def_is_deprecated(&self, row: MethodDef) -> bool

source

pub fn method_def_does_not_return(&self, row: MethodDef) -> bool

source

pub fn method_def_can_return_multiple_success_values( &self, row: MethodDef ) -> bool

source

pub fn method_def_special_name(&self, row: MethodDef) -> String

source

pub fn method_def_static_lib(&self, row: MethodDef) -> Option<String>

source

pub fn method_def_impl_map(&self, row: MethodDef) -> Option<ImplMap>

source

pub fn method_def_signature( &self, row: MethodDef, generics: &[Type] ) -> Signature

source

pub fn method_def_extern_abi(&self, def: MethodDef) -> &'static str

source

pub fn method_def_size(&self, method: MethodDef) -> usize

source

pub fn type_def_size(&self, def: TypeDef) -> usize

source

pub fn module_ref_name(&self, row: ModuleRef) -> &str

source

pub fn param_flags(&self, row: Param) -> ParamAttributes

source

pub fn param_sequence(&self, row: Param) -> usize

source

pub fn param_name(&self, row: Param) -> &str

source

pub fn param_attributes(&self, row: Param) -> impl Iterator<Item = Attribute>

source

pub fn param_is_com_out_ptr(&self, row: Param) -> bool

source

pub fn param_is_retval(&self, row: Param) -> bool

source

pub fn param_is_reserved(&self, row: Param) -> bool

source

pub fn param_free_with(&self, row: Param) -> Option<String>

source

pub fn param_is_const(&self, row: Param) -> bool

source

pub fn type_def_flags(&self, row: TypeDef) -> TypeAttributes

source

pub fn type_def_name(&self, row: TypeDef) -> &str

source

pub fn type_def_namespace(&self, row: TypeDef) -> &str

source

pub fn type_def_type_name(&self, row: TypeDef) -> TypeName<'_>

source

pub fn type_def_extends(&self, row: TypeDef) -> TypeName<'_>

source

pub fn type_def_fields(&self, row: TypeDef) -> impl Iterator<Item = Field>

source

pub fn type_def_methods(&self, row: TypeDef) -> impl Iterator<Item = MethodDef>

source

pub fn type_def_attributes( &self, row: TypeDef ) -> impl Iterator<Item = Attribute>

source

pub fn type_def_generics(&self, row: TypeDef) -> impl Iterator<Item = Type>

source

pub fn type_def_interface_impls( &self, row: TypeDef ) -> impl Iterator<Item = InterfaceImpl>

source

pub fn type_def_enclosing_type(&self, row: TypeDef) -> Option<TypeDef>

source

pub fn type_def_class_layout(&self, row: TypeDef) -> Option<ClassLayout>

source

pub fn type_def_underlying_type(&self, row: TypeDef) -> Type

source

pub fn type_def_kind(&self, row: TypeDef) -> TypeKind

source

pub fn type_def_stdcall(&self, row: TypeDef) -> usize

source

pub fn type_def_is_blittable(&self, row: TypeDef) -> bool

source

pub fn type_def_is_copyable(&self, row: TypeDef) -> bool

source

pub fn type_def_is_callback(&self, row: TypeDef) -> bool

source

pub fn type_def_has_default_constructor(&self, row: TypeDef) -> bool

source

pub fn type_def_invoke_method(&self, row: TypeDef) -> MethodDef

source

pub fn type_def_interfaces( &'a self, row: TypeDef, generics: &'a [Type] ) -> impl Iterator<Item = Interface> + '_

source

pub fn type_def_default_interface(&self, row: TypeDef) -> Option<Type>

source

pub fn type_def_has_default_interface(&self, row: TypeDef) -> bool

source

pub fn type_def_is_deprecated(&self, row: TypeDef) -> bool

source

pub fn type_def_is_handle(&self, row: TypeDef) -> bool

source

pub fn type_def_is_exclusive(&self, row: TypeDef) -> bool

source

pub fn type_def_is_scoped(&self, row: TypeDef) -> bool

source

pub fn type_def_is_contract(&self, row: TypeDef) -> bool

source

pub fn type_def_is_trivially_convertible(&self, row: TypeDef) -> bool

source

pub fn type_def_is_primitive(&self, row: TypeDef) -> bool

source

pub fn type_def_has_explicit_layout(&self, row: TypeDef) -> bool

source

pub fn type_def_has_packing(&self, row: TypeDef) -> bool

source

pub fn type_def_has_callback(&self, row: TypeDef) -> bool

source

pub fn type_def_guid(&self, row: TypeDef) -> Option<GUID>

source

pub fn type_def_bases(&self, row: TypeDef) -> Vec<TypeDef>

source

pub fn type_def_is_flags(&self, row: TypeDef) -> bool

source

pub fn type_def_is_agile(&self, row: TypeDef) -> bool

source

pub fn type_def_invalid_values(&self, row: TypeDef) -> Vec<i64>

source

pub fn type_def_usable_for(&self, row: TypeDef) -> Option<TypeDef>

source

pub fn type_def_is_nullable(&self, row: TypeDef) -> bool

source

pub fn type_def_can_implement(&self, row: TypeDef) -> bool

source

pub fn type_def_async_kind(&self, row: TypeDef) -> AsyncKind

source

pub fn type_def_signature(&self, row: TypeDef, generics: &[Type]) -> String

source

pub fn type_def_cfg(&self, row: TypeDef, generics: &[Type]) -> Cfg<'_>

source

pub fn type_def_cfg_impl(&self, def: TypeDef, generics: &[Type]) -> Cfg<'_>

source

pub fn type_def_cfg_combine( &'a self, row: TypeDef, generics: &[Type], cfg: &mut Cfg<'a> )

source

pub fn type_def_vtables(&self, row: TypeDef) -> Vec<Type>

source

pub fn type_ref_name(&self, row: TypeRef) -> &str

source

pub fn type_ref_namespace(&self, row: TypeRef) -> &str

source

pub fn type_ref_type_name(&self, row: TypeRef) -> TypeName<'_>

source

pub fn type_spec_signature(&self, row: TypeSpec) -> Blob<'_>

source

pub fn signature_cfg(&self, signature: &Signature) -> Cfg<'_>

source

pub fn signature_param_is_borrowed(&self, param: &SignatureParam) -> bool

source

pub fn signature_param_is_failible_param(&self, param: &SignatureParam) -> bool

source

pub fn signature_param_is_trivially_convertible( &self, param: &SignatureParam ) -> bool

source

pub fn signature_param_is_convertible(&self, param: &SignatureParam) -> bool

source

pub fn signature_param_is_retval(&self, param: &SignatureParam) -> bool

source

pub fn signature_kind(&self, signature: &Signature) -> SignatureKind

source

pub fn type_cfg(&self, ty: &Type) -> Cfg<'_>

source

pub fn type_cfg_combine(&'a self, ty: &Type, cfg: &mut Cfg<'a>)

source

pub fn type_interfaces(&self, ty: &Type) -> Vec<Interface>

source

pub fn type_is_exclusive(&self, ty: &Type) -> bool

source

pub fn type_is_blittable(&self, ty: &Type) -> bool

source

pub fn type_is_copyable(&self, ty: &Type) -> bool

source

pub fn type_has_explicit_layout(&self, ty: &Type) -> bool

source

pub fn type_has_packing(&self, ty: &Type) -> bool

source

pub fn type_has_callback(&self, ty: &Type) -> bool

source

pub fn type_name(&self, ty: &Type) -> &str

source

pub fn type_signature(&self, ty: &Type) -> String

source

pub fn type_is_nullable(&self, ty: &Type) -> bool

source

pub fn type_is_non_exclusive_winrt_interface(&self, ty: &Type) -> bool

source

pub fn type_is_trivially_convertible(&self, ty: &Type) -> bool

source

pub fn type_is_callback(&self, ty: &Type) -> bool

source

pub fn type_is_primitive(&self, ty: &Type) -> bool

source

pub fn type_is_struct(&self, ty: &Type) -> bool

source

pub fn type_underlying_type(&self, ty: &Type) -> Type

source

pub fn type_has_replacement(&self, ty: &Type) -> bool

Auto Trait Implementations§

§

impl<'a> RefUnwindSafe for Reader<'a>

§

impl<'a> Send for Reader<'a>

§

impl<'a> Sync for Reader<'a>

§

impl<'a> Unpin for Reader<'a>

§

impl<'a> UnwindSafe for Reader<'a>

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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 Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.