pub struct FfiManifest {
pub libraries: Vec<FfiLibrary>,
}Expand description
Top-level FFI manifest structure
Fields§
§libraries: Vec<FfiLibrary>Library definitions (usually just one per manifest)
Implementations§
Source§impl FfiManifest
impl FfiManifest
Sourcepub fn parse(content: &str) -> Result<Self, String>
pub fn parse(content: &str) -> Result<Self, String>
Parse an FFI manifest from TOML content
Validates the manifest after parsing to catch:
- Empty library names or linker flags
- Empty function names (c_name or seq_name)
- Malformed stack effects
Sourcepub fn linker_flags(&self) -> Vec<String>
pub fn linker_flags(&self) -> Vec<String>
Get all linker flags needed for this manifest
Sourcepub fn functions(&self) -> impl Iterator<Item = &FfiFunction>
pub fn functions(&self) -> impl Iterator<Item = &FfiFunction>
Get all function bindings from this manifest
Trait Implementations§
Source§impl Clone for FfiManifest
impl Clone for FfiManifest
Source§fn clone(&self) -> FfiManifest
fn clone(&self) -> FfiManifest
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 FfiManifest
impl Debug for FfiManifest
Source§impl<'de> Deserialize<'de> for FfiManifest
impl<'de> Deserialize<'de> for FfiManifest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FfiManifest
impl RefUnwindSafe for FfiManifest
impl Send for FfiManifest
impl Sync for FfiManifest
impl Unpin for FfiManifest
impl UnwindSafe for FfiManifest
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