pub struct CSharpModule {
pub namespace: String,
pub using_directives: Vec<String>,
pub classes: Vec<CSharpClass>,
pub records: Vec<CSharpRecord>,
pub interfaces: Vec<CSharpInterface>,
pub enums: Vec<CSharpEnum>,
pub header_comment: Option<String>,
pub nullable_enable: bool,
}Expand description
A complete C# compilation unit (one .cs file).
Fields§
§namespace: StringThe namespace for all contained types
using_directives: Vec<String>using directives (namespaces to import)
classes: Vec<CSharpClass>Class declarations
records: Vec<CSharpRecord>Record declarations
interfaces: Vec<CSharpInterface>Interface declarations
enums: Vec<CSharpEnum>Enum declarations
header_comment: Option<String>Top-level comment / header
nullable_enable: bool#nullable enable directive
Implementations§
Trait Implementations§
Source§impl Clone for CSharpModule
impl Clone for CSharpModule
Source§fn clone(&self) -> CSharpModule
fn clone(&self) -> CSharpModule
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CSharpModule
impl RefUnwindSafe for CSharpModule
impl Send for CSharpModule
impl Sync for CSharpModule
impl Unpin for CSharpModule
impl UnsafeUnpin for CSharpModule
impl UnwindSafe for CSharpModule
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