pub struct RawEnum {
pub idents: RawIdents,
pub tokens: TokenStream,
}
Expand description
A generated raw enum.
Fields
idents: RawIdents
The identifiers for the generated items.
tokens: TokenStream
The definitions of the generated items.
Implementations
sourceimpl RawEnum
impl RawEnum
sourcepub fn for_derive(input: &DeriveInput) -> Result<RawEnum, Error>
pub fn for_derive(input: &DeriveInput) -> Result<RawEnum, Error>
Generates a raw enum for the given derive input.
Auto Trait Implementations
impl RefUnwindSafe for RawEnum
impl !Send for RawEnum
impl !Sync for RawEnum
impl Unpin for RawEnum
impl UnwindSafe for RawEnum
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more