Struct cxx_gen::GeneratedCode

source ·
pub struct GeneratedCode {
    pub header: Vec<u8>,
    pub implementation: Vec<u8>,
}
Expand description

Results of code generation.

Fields§

§header: Vec<u8>

The bytes of a C++ header file.

§implementation: Vec<u8>

The bytes of a C++ implementation file (e.g. .cc, cpp etc.)

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.