pub struct FfiBindings {
pub functions: HashMap<String, FfiFunctionInfo>,
pub linker_flags: Vec<String>,
}Expand description
Resolved FFI bindings ready for code generation
Fields§
§functions: HashMap<String, FfiFunctionInfo>Map from Seq word name to C function info
linker_flags: Vec<String>Linker flags to add
Implementations§
Source§impl FfiBindings
impl FfiBindings
Sourcepub fn add_manifest(&mut self, manifest: &FfiManifest) -> Result<(), String>
pub fn add_manifest(&mut self, manifest: &FfiManifest) -> Result<(), String>
Add bindings from a manifest
Sourcepub fn is_ffi_function(&self, name: &str) -> bool
pub fn is_ffi_function(&self, name: &str) -> bool
Check if a word is an FFI function
Sourcepub fn get_function(&self, name: &str) -> Option<&FfiFunctionInfo>
pub fn get_function(&self, name: &str) -> Option<&FfiFunctionInfo>
Get FFI function info
Sourcepub fn function_names(&self) -> Vec<&str>
pub fn function_names(&self) -> Vec<&str>
Get all FFI function names for AST validation
Trait Implementations§
Source§impl Clone for FfiBindings
impl Clone for FfiBindings
Source§fn clone(&self) -> FfiBindings
fn clone(&self) -> FfiBindings
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FfiBindings
impl Debug for FfiBindings
Auto Trait Implementations§
impl Freeze for FfiBindings
impl RefUnwindSafe for FfiBindings
impl Send for FfiBindings
impl Sync for FfiBindings
impl Unpin for FfiBindings
impl UnwindSafe for FfiBindings
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