Struct interoptopus_backend_csharp::Config [−][src]
pub struct Config { pub file_header_comment: String, pub class: String, pub dll_name: String, pub namespace_mappings: NamespaceMappings, pub namespace_id: String, pub emit_rust_visibility: bool, pub unroll_struct_arrays: bool, }
Expand description
Configures C# code generation.
Fields
file_header_comment: String
The file header, e.g., // (c) My Company
.
class: String
Static class for Interop methods, e.g., Interop
.
dll_name: String
DLL to load, e.g., my_library
.
namespace_mappings: NamespaceMappings
Maps which namespace id belongs into which FQN (e.g., “common” => “MyCompany.Common”).
namespace_id: String
Namespace ID of this namespace to write (default “”).
emit_rust_visibility: bool
Whether Visibility
information should be honored.
unroll_struct_arrays: bool
Whether, say, a x: [u8; 3]
should become 3 x0: u8, ...
instead.
If this is not set, interop generation with arrays in structr will fail. This is a somewhat open issue w.r.t Unity-sans-unsafe support and feedback would be greatly welcome!
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Config
impl UnwindSafe for Config
Blanket Implementations
Mutably borrows from an owned value. Read more