pub struct Enum<T> {
pub name: Ident,
pub doc: Option<Doc>,
pub variants: Vec<Variant<T>>,
pub vis: Visibility,
pub methods: Vec<Function<T>>,
pub attributes: Vec<T>,
}
Fields§
§name: Ident
§doc: Option<Doc>
§variants: Vec<Variant<T>>
§vis: Visibility
§methods: Vec<Function<T>>
§attributes: Vec<T>
Auto Trait Implementations§
impl<T> Freeze for Enum<T>
impl<T> RefUnwindSafe for Enum<T>where
T: RefUnwindSafe,
impl<T> Send for Enum<T>where
T: Send,
impl<T> Sync for Enum<T>where
T: Sync,
impl<T> Unpin for Enum<T>where
T: Unpin,
impl<T> UnwindSafe for Enum<T>where
T: UnwindSafe,
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