Expand description
A no-std utility library for building C APIs.
Modules§
Structs§
- Invalid
Arg - An invalid agument.
- Utf8Str
- UTF-8 text slice.
Enums§
- Invalid
ArgReason - The reason for an
InvalidArg. - WriteC
StrError - The error returned by
write_c_str.
Traits§
- Builder
- The builder pattern, as a trait.
- Error
Code - An error code returned by the C API.
- Extended
Error - Extended error information.
- Init
Default - Like
Default, but writes toMaybeUninit.
Functions§
- write_
c_ str - Writes
srcas a null-terminated C string todst.
Attribute Macros§
- builds
- Generates a “build” constructor for the named type.
- opaque
- Instructs
cbindgento ignore the Rust struct’s fields and instead generate a C struct with a specific size and alignment.