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 ``.

Converts an Rust struct name Vec2 to a C# struct name Vec2.

Converts an Rust fn() to a C# delegate name such as InteropDelegate.

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.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.