Module c_interface

Source
Expand description

Helper structs for interacting with C pointers in safe rust.

Structs§

CTmpMut
A mutable version of CTmpRef.
CTmpMutIterator
A mutable version of CTmpPtrIterator.
CTmpMutNullableIterator
Similar to CTmpMutIterator, with some support for optional (null) items.
CTmpPtrIterator
An iterator through a C array, maintaining a reference to a parent to ensure the data does not become invalid while iterating.
CTmpPtrNullableIterator
Similar to CTmpPtrIterator, with some support for optional (null) items.
CTmpRef
A reference type to temporarily borrow two types at once, ensuring a parent’s lifetime remains valid throughout the lifetime of the child.
SyncPtr
A wrapper over a raw pointer with the Send and Sync traits.

Traits§

NewFromPtr
Create a type from its underlying spine-c pointer type.