pub struct RustTypeDefs {
pub extended: bool,
/* private fields */
}Expand description
Helper for generating typescript declarations/representations of standard rust types. These types should not be exposed to downstream external users of the generated ffi library to prevent accidental misuse of the API
Fields§
§extended: boolWhether to use the extended variants of the rust type declarations which include methods for interacting with the underlying rust data structure
If using extended types, prompt user whether to embed the string utility functions as a dylib in the user’s library or to fetch it remotely
Implementations§
Source§impl RustTypeDefs
impl RustTypeDefs
Sourcepub fn print_inline(&self) -> (String, FfiInterface)
pub fn print_inline(&self) -> (String, FfiInterface)
Print rust types inline
Trait Implementations§
Source§impl Clone for RustTypeDefs
impl Clone for RustTypeDefs
Source§impl Debug for RustTypeDefs
impl Debug for RustTypeDefs
Auto Trait Implementations§
impl Freeze for RustTypeDefs
impl RefUnwindSafe for RustTypeDefs
impl Send for RustTypeDefs
impl Sync for RustTypeDefs
impl Unpin for RustTypeDefs
impl UnsafeUnpin for RustTypeDefs
impl UnwindSafe for RustTypeDefs
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