## RustString

# Foreign Type RustString

Source

    extern {
        pub type RustString;
    }

Expand description

Opaque type that allows C++ code to write bytes to a Rust-side buffer, in conjunction with `RawRustStringOstream`. Use this as `&RustString` (Rust) and `RustStringRef` (C++) in FFI signatures.

## Implementations§

Source§

### impl RustString

Source

#### pub fn build_byte_buffer(closure: impl FnOnce(&Self)) -> Vec<u8> ⓘ