xur_

> module

std::re::dotnet::sig

type and method signatures

use std::re::dotnet::sig; feature re-dotnet in the browser

Signatures for import_method(), import_corlib_method() and public_static_method().

> functions

# bool() -> TypeSigDef

System.Boolean.

# char() -> TypeSigDef

System.Char.

# float64() -> TypeSigDef

System.Double.

# int32() -> TypeSigDef

System.Int32.

# int64() -> TypeSigDef

System.Int64.

# intptr() -> TypeSigDef

System.IntPtr, a native-sized integer.

# method_instance(ret: TypeSigDef, params: list<TypeSigDef>) -> MethodSigDef

The same for an instance method, which also takes this.

# method_static(ret: TypeSigDef, params: list<TypeSigDef>) -> MethodSigDef

The signature of a static method returning ret and taking params.

# object() -> TypeSigDef

System.Object.

# string() -> TypeSigDef

System.String.

# sz_array(elem: TypeSigDef) -> TypeSigDef

A one-dimensional, zero-based array of elem, such as string[].

# void() -> TypeSigDef

void, for a return type.

> types

┌ struct ArrayShape
ranku32
sizeslist<u32>
lo_boundslist<i32>
┌ enum CallingConvention
CallingConvention::Default
CallingConvention::C
CallingConvention::StdCall
CallingConvention::ThisCall
CallingConvention::FastCall
CallingConvention::VarArg
CallingConvention::Field
CallingConvention::LocalSig
CallingConvention::Property
CallingConvention::Unmanaged
CallingConvention::GenericInst
CallingConvention::NativeVarArg
┌ enum ElementType
ElementType::End
ElementType::Void
ElementType::Boolean
ElementType::Char
ElementType::I1
ElementType::U1
ElementType::I2
ElementType::U2
ElementType::I4
ElementType::U4
ElementType::I8
ElementType::U8
ElementType::R4
ElementType::R8
ElementType::String
ElementType::Ptr
ElementType::ByRef
ElementType::ValueType
ElementType::Class
ElementType::Var
ElementType::Array
ElementType::GenericInst
ElementType::TypedByRef
ElementType::I
ElementType::U
ElementType::FnPtr
ElementType::Object
ElementType::SzArray
ElementType::MVar
ElementType::CModReqd
ElementType::CModOpt
ElementType::Internal
ElementType::Sentinel
ElementType::Pinned
┌ struct FieldSig
┌ enum MemberRefSig

Signature of a [`MemberRef`](crate::dotnet::entries::MemberRef).

MemberRefSig::Method(MethodSig)
MemberRefSig::Field(FieldSig)
┌ struct MethodSig
calling_conventionCallingConvention
flagsSignatureFlags
generic_param_countu32
retTypeSig
paramslist<TypeSig>
varargslist<TypeSig>Parameters after the vararg sentinel (call site signatures only).
┌ enum PrimitiveType

Built-in types. `IntoStaticStr`/[`keyword`](Self::keyword) yields the C# keyword (`to_string`); the BCL simple name (`Int32`, `IntPtr`, …) is an extra parse alias so [`from_clr_name`](Self::from_clr_name) maps `System.*` names.

PrimitiveType::Void
PrimitiveType::Boolean
PrimitiveType::Char
PrimitiveType::I1
PrimitiveType::U1
PrimitiveType::I2
PrimitiveType::U2
PrimitiveType::I4
PrimitiveType::U4
PrimitiveType::I8
PrimitiveType::U8
PrimitiveType::R4
PrimitiveType::R8
PrimitiveType::String
PrimitiveType::TypedByRef
PrimitiveType::I
PrimitiveType::U
PrimitiveType::Object
┌ struct PropertySig
has_thisbool
tyTypeSig
paramslist<TypeSig>
┌ type SignatureFlags

An opaque value; see the functions that return it.

┌ enum TypeSig
TypeSig::Primitive(PrimitiveType)
TypeSig::ValueType(TypeDefOrRef)
TypeSig::Class(TypeDefOrRef)
TypeSig::Ptr(TypeSig)
TypeSig::ByRef(TypeSig)
TypeSig::Pinned(TypeSig)
TypeSig::SzArray(TypeSig)
TypeSig::Array(element:TypeSig,shape:ArrayShape)
TypeSig::GenericInst(generic:TypeSig,args:list<TypeSig>)
TypeSig::Var(u32)Generic parameter of the enclosing type.
TypeSig::MVar(u32)Generic parameter of the enclosing method.
TypeSig::FnPtr(MethodSig)
TypeSig::Modified(required:bool,modifier:TypeDefOrRef,ty:TypeSig)