pub struct CSharpProperty {
pub name: String,
pub ty: CSharpType,
pub visibility: CSharpVisibility,
pub has_getter: bool,
pub has_setter: bool,
pub is_init_only: bool,
pub is_static: bool,
pub default_value: Option<CSharpExpr>,
pub expr_body: Option<CSharpExpr>,
}Expand description
A C# auto-property or expression-body property.
Fields§
§name: String§ty: CSharpType§visibility: CSharpVisibility§has_getter: bool§has_setter: bool§is_init_only: bool§is_static: bool§default_value: Option<CSharpExpr>§expr_body: Option<CSharpExpr>Expression body: public int X => 42;
Implementations§
Trait Implementations§
Source§impl Clone for CSharpProperty
impl Clone for CSharpProperty
Source§fn clone(&self) -> CSharpProperty
fn clone(&self) -> CSharpProperty
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 CSharpProperty
impl Debug for CSharpProperty
Source§impl PartialEq for CSharpProperty
impl PartialEq for CSharpProperty
impl StructuralPartialEq for CSharpProperty
Auto Trait Implementations§
impl Freeze for CSharpProperty
impl RefUnwindSafe for CSharpProperty
impl Send for CSharpProperty
impl Sync for CSharpProperty
impl Unpin for CSharpProperty
impl UnsafeUnpin for CSharpProperty
impl UnwindSafe for CSharpProperty
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