pub struct RustFile {
pub text: String,
pub panic_to_exception: bool,
}Fields§
§text: String§panic_to_exception: boolImplementations§
Source§impl RustFile
impl RustFile
pub fn add_static_is_copy_assert(&mut self, ty: &RustType)
pub fn add_static_size_assert(&mut self, ty: &RustType, size: usize)
pub fn add_static_align_assert(&mut self, ty: &RustType, align: usize)
pub fn add_builder_for_dyn_fn( &mut self, name: &str, inputs: &[RustType], output: &RustType, ) -> String
pub fn add_tuple_constructor(&mut self, fields: &[RustType]) -> String
pub fn add_constructor( &mut self, rust_name: &str, args: &[(String, RustType)], ) -> ConstructorMangledNames
pub fn add_extern_cpp_impl( &mut self, owner: &RustType, tr: Option<&RustTrait>, methods: &[ZngurMethod], ) -> Vec<String>
pub fn add_extern_cpp_function( &mut self, rust_name: &str, inputs: &[RustType], output: &RustType, ) -> String
pub fn add_cpp_value_bridge(&mut self, ty: &RustType, field: &str) -> String
pub fn add_function( &mut self, rust_name: &str, inputs: &[RustType], output: &RustType, use_path: Option<Vec<String>>, deref: bool, ) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RustFile
impl RefUnwindSafe for RustFile
impl Send for RustFile
impl Sync for RustFile
impl Unpin for RustFile
impl UnwindSafe for RustFile
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