diplomat_
runtime
0.8.2
All Items
Modules
Structs
Functions
Type Aliases
Crate
diplomat_runtime
Copy item path
source
·
[
−
]
Modules
§
result
🔒
writeable
🔒
Structs
§
Diplomat
Result
A
Result
-like type that can be passed across the FFI boundary as a value. Used internally to return
Result
s and
Option
s from functions.
Diplomat
Writeable
An object that can one can write UTF-8 strings to
Functions
§
diplomat_
alloc
⚠
Allocates a buffer of a given size in Rust’s memory.
diplomat_
free
⚠
Frees a buffer that was allocated in Rust’s memory.
Type Aliases
§
Diplomat
Byte
Like
u8
, but interpreted explicitly as a raw byte as opposed to a numerical value. This matters for languages like JavaScript or Dart, where there’s only a single numeric type, but special types for byte buffers.
Diplomat
Char
Like
char
, but unvalidated.
Diplomat
Str
Like
str
, but unvalidated.
Diplomat
Str16
Like
Wstr
, but unvalidated.