Typedefs
Typedefs of types correspond to type aliases in Rust. Type aliases may only be used for types and not traits. If a typedef defines an alias of an interface, it will instead be publicly re-exported under the specified name.
// IDL
typedef long T;
typedef sequence<long> S1;
typedef S1 S2;
interface A1;
typedef A1 A2;
#![allow(unused)]
fn main() {
pub type T = i32;
pub type S1 = Vec<i32>;
pub type S2 = S1;
// ...definitions for A1...
pub use A1 as A2;
}