pub enum CPointer {
Text,
Memory,
Handle,
Out,
Struct,
}Expand description
What a C pointer type crosses as
Variants§
Text
char *, const unsigned char *: a warp text (a parameter its NUL-terminated letters in linear memory)
Memory
void *, int *: a parameter points into linear memory; a result is a handle
Handle
sqlite3 *, FILE *: an id into the run’s handle table (CHandles), 0 is NULL
Out
sqlite3 **ppDb: left out of the warp call; the first one becomes the result unless a struct output is, the others
receive NULL
Struct
wasmtime_instance_t *instance as the call’s output: the struct read back as a map (c_structs.rs)
Trait Implementations§
impl Copy for CPointer
impl Eq for CPointer
impl StructuralPartialEq for CPointer
Auto Trait Implementations§
impl Freeze for CPointer
impl RefUnwindSafe for CPointer
impl Send for CPointer
impl Sync for CPointer
impl Unpin for CPointer
impl UnsafeUnpin for CPointer
impl UnwindSafe for CPointer
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.