pub struct CSharpEnum {
pub name: String,
pub variants: Vec<(String, Option<i64>)>,
pub visibility: CSharpVisibility,
pub underlying_type: Option<CSharpType>,
}Expand description
A C# enum declaration.
Fields§
§name: String§variants: Vec<(String, Option<i64>)>§visibility: CSharpVisibility§underlying_type: Option<CSharpType>Implementations§
Trait Implementations§
Source§impl Clone for CSharpEnum
impl Clone for CSharpEnum
Source§fn clone(&self) -> CSharpEnum
fn clone(&self) -> CSharpEnum
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 CSharpEnum
impl Debug for CSharpEnum
Source§impl PartialEq for CSharpEnum
impl PartialEq for CSharpEnum
impl StructuralPartialEq for CSharpEnum
Auto Trait Implementations§
impl Freeze for CSharpEnum
impl RefUnwindSafe for CSharpEnum
impl Send for CSharpEnum
impl Sync for CSharpEnum
impl Unpin for CSharpEnum
impl UnsafeUnpin for CSharpEnum
impl UnwindSafe for CSharpEnum
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