pub struct CFunction {
pub module: String,
pub library: String,
pub name: String,
pub param_types: Vec<ParamType>,
pub result: Option<CPointer>,
pub ret_type: RetType,
pub out_pointee: Option<String>,
pub layouts: Vec<String>,
pub failure: Failure,
}Expand description
A C function as an import of a program: its import module (the library as the program names it, zlib), the
library it loads (z), and how its parameters and result cross
Fields§
§module: String§library: String§name: String§param_types: Vec<ParamType>§result: Option<CPointer>Text, Handle, or None for the C function’s own number (ret_type)
ret_type: RetType§out_pointee: Option<String>what the first out-pointer points to (sqlite3_stmt of sqlite3_stmt **ppStmt), for the error of a NULL there
layouts: Vec<String>the layout text of each struct parameter (c_structs.rs), “” for the others; empty without struct parameters
failure: Failurewhether the C result reports a failure instead of being the result
Implementations§
Trait Implementations§
impl Eq for CFunction
impl StructuralPartialEq for CFunction
Auto Trait Implementations§
impl Freeze for CFunction
impl RefUnwindSafe for CFunction
impl Send for CFunction
impl Sync for CFunction
impl Unpin for CFunction
impl UnsafeUnpin for CFunction
impl UnwindSafe for CFunction
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.