Struct interoptopus_backend_csharp::Converter [−][src]
pub struct Converter {}
Expand description
Implements CSharpTypeConverter
.
Trait Implementations
Converts a primitive (Rust) type to a native C# type name, e.g., f32
to float
.
Converts a Rust enum name such as Error
to a C# enum name Error
.
TODO Converts an opaque Rust struct Context
to a C# struct ``.
fn pattern_to_native_in_signature(
&self,
param: &Parameter,
_signature: &FunctionSignature
) -> String
Converts an Rust struct name Vec2
to a C# struct name Vec2
.
Converts an Rust fn()
to a C# delegate name such as InteropDelegate
.
fn to_typespecifier_in_field(
&self,
x: &CType,
field: &Field,
composite: &CompositeType
) -> String
fn to_typespecifier_in_field(
&self,
x: &CType,
field: &Field,
composite: &CompositeType
) -> String
Converts the u32
part in a Rust field x: u32
to a C# equivalent. Might convert pointers to IntPtr
.
Converts the u32
part in a Rust paramter x: u32
to a C# equivalent. Might convert pointers to out X
or ref X
.
fn function_parameter_to_csharp_typename(
&self,
x: &Parameter,
_function: &Function
) -> String
Auto Trait Implementations
impl RefUnwindSafe for Converter
impl UnwindSafe for Converter
Blanket Implementations
Mutably borrows from an owned value. Read more