Expand description
CGlue procedural macros
Macros§
- as_mut
- Checked cast to a list of optional traits.
- as_ref
- Checked cast to a list of optional traits.
- cast
- Checked cast to a list of optional traits.
- cglue_
builtin_ ext_ forward - Implement cglue_forward_ext for all builtin external traits.
- cglue_
builtin_ ext_ traits - Implement builtin external traits.
- cglue_
impl_ group - Implement a CGlue group for a specific type.
- cglue_
trait_ group - Define a CGlue trait group.
- check
- Check if the group can be cast to the specified traits.
- group_
obj - Convert into a CGlue trait group.
- into
- Checked cast to a list of optional traits.
- trait_
obj - Convert into a CGlue compatible object.
Attribute Macros§
- cglue_
forward - Generate forward trait implementation for Fwd.
- cglue_
forward_ ext - Generate forward trait implementation for Fwd.
- cglue_
trait - Make a trait CGlue compatible.
- cglue_
trait_ ext - Make an external trait CGlue compatible.
- custom_
impl - Add custom wrapping for a trait impl and the C interface.
- int_
result - Mark the trait or function to use
IntResult
. - no_
int_ result - Exclude a single function from using
IntResult
. - no_
unwind_ abi - Make the resulting C function NOT support C++ unwinding (overrides default).
- return_
wrap - Specify return type conversion with a closure.
- skip_
func - Skip reimplementing this function.
- unwind_
abi - Make the resulting C function support C++ unwinding (overrides default).
- vtbl_
only - Emit a vtable entry, but do not use it in Rust.
- wrap_
with - Wrap the associated type with a custom type.
- wrap_
with_ group - Wrap the associated type with a CGlue trait group.
- wrap_
with_ group_ mut - Wrap the associated type with a CGlue trait group mutable reference.
- wrap_
with_ group_ ref - Wrap the associated type with a CGlue trait group reference.
- wrap_
with_ obj - Wrap the associated type with a CGlue trait object.
- wrap_
with_ obj_ mut - Wrap the associated type with a CGlue trait object mutable reference.
- wrap_
with_ obj_ ref - Wrap the associated type with a CGlue trait object reference.