Module cxx_build

Source
Expand description

C++ bridge generator; paired with cxx.

See crate ::cxx.

Modules§

alloc
The Rust core allocation and collections library
core
The Rust Core Library
kind
Marker types identifying Rust’s knowledge about an extern C++ type.
memory
Less used details of UniquePtr and SharedPtr.
std
The Rust Standard Library
vector
Less used details of CxxVector.

Macros§

let_cxx_string
Construct a C++ std::string on the Rust stack.
type_id
For use in impls of the ExternType trait. See ExternType.

Structs§

CxxString
Binding to C++ std::string.
CxxVector
Binding to C++ std::vector<T, std::allocator<T>>.
Exception
Exception thrown from an extern "C++" function.
SharedPtr
Binding to C++ std::shared_ptr<T>.
UniquePtr
Binding to C++ std::unique_ptr<T, std::default_delete<T>>.
WeakPtr
Binding to C++ std::weak_ptr<T>.

Traits§

ExternType
A type for which the layout is determined by its C++ definition.

Type Aliases§

String
Synonym for CxxString.
Vector
Synonym for CxxVector.

Attribute Macros§

bridge
#[cxx::bridge] mod ffi { ... }