pub struct MultiBindings(_);
Expand description

Struct which stores multiple sets of bindings and can be serialized to disk. This is used when our build system uses autocxx_gen; that can handle multiple include_cpp! macros and therefore generate multiple sets of Rust bindings. We can’t simply include! those because there’s no (easy) way to pass their details from the codegen phase across to the Rust macro phase. Instead, we use this data structure to store several sets of .rs bindings in a single file, and then the macro extracts the correct set of bindings at expansion time.

Implementations

Insert some generated Rust bindings into this data structure.

Retrieves the bindings corresponding to a given IncludeCppConfig.

Trait Implementations

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. 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.