pub enum CKind {
Scalar,
Str,
Bytes,
Buffer,
Len(usize),
Out,
Struct,
OutPtr(usize),
}Expand description
How a C parameter crosses the bridge.
Variants§
Scalar
Str
const char *, NUL-terminated.
Bytes
A const byte pointer read for the length in another parameter.
Buffer
A byte pointer the function writes, sized by another parameter.
Len(usize)
The length of the buffer parameter at this index.
Out
A pointer to one scalar the function may read and write.
Struct
A struct of scalars, passed by value (struct:<C name>:<fields>).
OutPtr(usize)
A char ** whose pointer points into the string or buffer parameter at this index.
Trait Implementations§
impl Copy for CKind
impl Eq for CKind
impl StructuralPartialEq for CKind
Auto Trait Implementations§
impl Forget for CKind
impl Freeze for CKind
impl Move for CKind
impl RefUnwindSafe for CKind
impl Send for CKind
impl Sync for CKind
impl Unpin for CKind
impl UnsafeUnpin for CKind
impl UnwindSafe for CKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.