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

The structure consist of:

  • extern blocks translator module, i.e. extern "Rust" and extern "Traits",
  • generated extern functions that wrap the actual user’s methods.

Implementations§

The method translates Rust module containing extern "Rust" and generates all needed wrappers.

Method generates C++, Swift and SWIG glue code. The latter is needed to generate glue code for other target languages like Java, C#, Python etc.

Returns the whole generated code in the form of a token stream. It wraps the derived module into another one in order to avoid custom types and wrappers types names collision.

Trait Implementations§

Returns the “default value” for a type. 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 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.