C++ Gerado

#[cxx::bridge] mod ffi { // Tipos e assinaturas Rust expostos ao C++. extern "Rust" { type MultiBuf; fn next_chunk(buf: &mut MultiBuf) -> &[u8]; } }

Resulta (aproximadamente) no seguinte C++:

struct MultiBuf final : public ::rust::Opaque { ~MultiBuf() = delete; private: friend ::rust::layout; struct layout { static ::std::size_t size() noexcept; static ::std::size_t align() noexcept; }; }; ::rust::Slice<::std::uint8_t const> next_chunk(::org::blobstore::MultiBuf &buf) noexcept;