pub struct RustFile {
pub text: String,
pub panic_to_exception: bool,
pub mangling_base: String,
}Fields§
§text: String§panic_to_exception: bool§mangling_base: StringImplementations§
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_static_size_upper_bound_assert(&mut self, ty: &RustType, size: usize)
pub fn add_static_align_upper_bound_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<'a>( &mut self, rust_name: &str, args: impl IntoIterator<Item = (&'a String, &'a RustType)> + Clone, ) -> String
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, is_safe: bool, ) -> String
pub fn add_cpp_value_bridge(&mut self, ty: &RustType) -> String
pub fn add_function( &mut self, cxx_name: &str, rust_name: &str, inputs: &[RustType], output: &RustType, use_path: Option<Vec<String>>, deref: Option<Mutability>, namespace: &str, crate_name: &str, ) -> CppFnSig
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 UnsafeUnpin 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more