pub struct EnumInfo {
pub name: String,
pub is_public: bool,
pub variants: Vec<String>,
pub derives: Vec<String>,
pub line_number: usize,
}Expand description
Information about an enum
Fields§
§name: StringName of the enum
is_public: boolWhether the enum is public
variants: Vec<String>Variants of the enum
derives: Vec<String>Derive attributes on the enum
line_number: usizeLine number where the enum is defined
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EnumInfo
impl RefUnwindSafe for EnumInfo
impl Send for EnumInfo
impl Sync for EnumInfo
impl Unpin for EnumInfo
impl UnwindSafe for EnumInfo
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