pub struct Converter { /* private fields */ }
Expand description

Implements CTypeConverter.

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

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.