pub struct EnumDeclaration {
pub name: String,
pub attributes: Vec<Attribute>,
pub modifiers: Vec<String>,
pub members: Vec<EnumMember>,
pub span: Range<usize>,
}Expand description
Enum declaration.
Represents an enum definition in C#. Enums are value types that
consist of a set of named constants.
Fields§
§name: StringThe name of the enum.
attributes: Vec<Attribute>Attributes applied to the enum.
modifiers: Vec<String>Modifiers like public, internal.
members: Vec<EnumMember>The individual members (constants) of the enum.
span: Range<usize>Source location of the enum declaration.
Trait Implementations§
Source§impl Clone for EnumDeclaration
impl Clone for EnumDeclaration
Source§fn clone(&self) -> EnumDeclaration
fn clone(&self) -> EnumDeclaration
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 EnumDeclaration
impl Debug for EnumDeclaration
Source§impl<'de> Deserialize<'de> for EnumDeclaration
impl<'de> Deserialize<'de> for EnumDeclaration
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EnumDeclaration
impl PartialEq for EnumDeclaration
Source§impl Serialize for EnumDeclaration
impl Serialize for EnumDeclaration
impl StructuralPartialEq for EnumDeclaration
Auto Trait Implementations§
impl Freeze for EnumDeclaration
impl RefUnwindSafe for EnumDeclaration
impl Send for EnumDeclaration
impl Sync for EnumDeclaration
impl Unpin for EnumDeclaration
impl UnsafeUnpin for EnumDeclaration
impl UnwindSafe for EnumDeclaration
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