Module templates

Source

Constants§

IMPORTS
PREDEFINED
Predefined C++ classes and primitive types typedefs useful during the standard work on FFI basic structures. It consists of a custom RustVector and String implementations that keep track of some object ownership aspects. Items returned by RustVec::at(x) method should be treated as references, since the underlying objects are owned by the vector.
RUST_EXCEPTION_BASE_CLASS_NAME
TYPEDEFS

Traits§

TargetLanguageTypeName

Functions§

abstract_class_declaration
Creates a class that maps onto the custom structures with methods that are available in the FFI. The ownership depends on the source from which the object is created.
base_exception_class
begin_end_impl
Creates an implementation of RustVec begin and end implementation. It should be generated for primitive types only, cause pointer arithmetics for Rust opaque types is not trivial.
create_non_primitive_exception_class
Creates exception class for an error variant that may be returned from rust
create_primitive_exception_class
Creates exception class for an error variant of primitive enum that may be returned from rust
custom_class_definition
Creates a class that maps onto the custom structures with methods that are available in the FFI. The ownership depends on the source from which the object is created.
exception_class_name
option_class
Creates a class that maps onto the Rust Option object. The ownership depends on the source from which the object is created.
result_class
Creates a class that maps onto the Rust Result<T, E> object. The ownership depends on the source from which the object is created.
vector_impl
Creates an implementation of RustVec for a given T that maps to the Rust Vec object.