A rust Rust type aliases, such as pub type X = ...;
, is mapped to the equivalent C++ type alias, such as using X = ...;
.
Limitations:
pub type X<T> = ...
, are not supported.Given the following Rust crate:
cs/file:examples/rust/type_alias/example.rs content:\bpub\ type\b
Crubit will generate the following bindings:
cs/file:examples/rust/type_alias/example_generated.h content:\busing\b