pub struct EnumSpec {
pub name: Option<Ident>,
pub enumerators: Option<Vec<Enumerator>>,
pub underlying: Option<Type>,
pub range: SourceRange,
}Expand description
An enum specifier, as written.
Stored in TranslationUnit::enums and named by EnumSpecId, for the
same reason a RecordSpec is.
Fields§
§name: Option<Ident>The tag, if one was written.
enumerators: Option<Vec<Enumerator>>The enumerator list; None for a reference such as enum E e.
underlying: Option<Type>The fixed underlying type (enum E : unsigned char { … }), C23.
range: SourceRangeWhere the specifier was written.
Trait Implementations§
impl StructuralPartialEq for EnumSpec
Auto Trait Implementations§
impl Freeze for EnumSpec
impl RefUnwindSafe for EnumSpec
impl Send for EnumSpec
impl Sync for EnumSpec
impl Unpin for EnumSpec
impl UnsafeUnpin for EnumSpec
impl UnwindSafe for EnumSpec
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