pub struct TranspiledFile {
pub source_path: PathBuf,
pub rust_code: String,
pub dependencies: Vec<PathBuf>,
pub functions_exported: Vec<String>,
pub ffi_declarations: String,
}Expand description
Result of transpiling a single C file.
Contains the transpiled Rust code along with metadata about dependencies and exported symbols for cross-file reference tracking.
Fields§
§source_path: PathBufPath to the original C source file
rust_code: StringGenerated Rust code
dependencies: Vec<PathBuf>List of C files this file depends on (#include dependencies)
functions_exported: Vec<String>Functions exported by this file (for FFI and cross-file references)
ffi_declarations: StringFFI declarations (extern “C”) for C↔Rust boundaries
Implementations§
Trait Implementations§
Source§impl Clone for TranspiledFile
impl Clone for TranspiledFile
Source§fn clone(&self) -> TranspiledFile
fn clone(&self) -> TranspiledFile
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 TranspiledFile
impl Debug for TranspiledFile
Source§impl<'de> Deserialize<'de> for TranspiledFile
impl<'de> Deserialize<'de> for TranspiledFile
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 TranspiledFile
impl RefUnwindSafe for TranspiledFile
impl Send for TranspiledFile
impl Sync for TranspiledFile
impl Unpin for TranspiledFile
impl UnsafeUnpin for TranspiledFile
impl UnwindSafe for TranspiledFile
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