pub struct CSharpClass {Show 13 fields
pub name: String,
pub base_class: Option<String>,
pub interfaces: Vec<String>,
pub methods: Vec<CSharpMethod>,
pub properties: Vec<CSharpProperty>,
pub constructors: Vec<CSharpConstructor>,
pub is_sealed: bool,
pub is_abstract: bool,
pub is_static: bool,
pub is_partial: bool,
pub visibility: CSharpVisibility,
pub type_params: Vec<String>,
pub fields: Vec<CSharpField>,
}Expand description
A C# class declaration.
Fields§
§name: String§base_class: Option<String>Base class (single inheritance)
interfaces: Vec<String>Implemented interfaces
methods: Vec<CSharpMethod>Methods
properties: Vec<CSharpProperty>Properties (auto-properties and expression-body)
constructors: Vec<CSharpConstructor>Constructors
is_sealed: boolsealed — cannot be inherited
is_abstract: boolabstract — cannot be instantiated directly
is_static: boolstatic — no instances
is_partial: boolpartial modifier
visibility: CSharpVisibility§type_params: Vec<String>§fields: Vec<CSharpField>Fields
Implementations§
Trait Implementations§
Source§impl Clone for CSharpClass
impl Clone for CSharpClass
Source§fn clone(&self) -> CSharpClass
fn clone(&self) -> CSharpClass
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 moreSource§impl Debug for CSharpClass
impl Debug for CSharpClass
Source§impl PartialEq for CSharpClass
impl PartialEq for CSharpClass
impl StructuralPartialEq for CSharpClass
Auto Trait Implementations§
impl Freeze for CSharpClass
impl RefUnwindSafe for CSharpClass
impl Send for CSharpClass
impl Sync for CSharpClass
impl Unpin for CSharpClass
impl UnsafeUnpin for CSharpClass
impl UnwindSafe for CSharpClass
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