pub struct GeneratedC {
pub header: String,
pub rust: String,
}Expand description
The two halves of a generated C wrapper: a C header fragment and Rust glue.
Fields§
§header: StringC declarations for the generated structs, enums and pack/unpack helpers.
rust: StringRust mirror types and extern "C" implementations, included by the FFI crate.
Trait Implementations§
Source§impl Clone for GeneratedC
impl Clone for GeneratedC
Source§impl Debug for GeneratedC
impl Debug for GeneratedC
impl Eq for GeneratedC
Source§impl PartialEq for GeneratedC
impl PartialEq for GeneratedC
impl StructuralPartialEq for GeneratedC
Auto Trait Implementations§
impl Freeze for GeneratedC
impl RefUnwindSafe for GeneratedC
impl Send for GeneratedC
impl Sync for GeneratedC
impl Unpin for GeneratedC
impl UnsafeUnpin for GeneratedC
impl UnwindSafe for GeneratedC
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.