pub struct Enumeration {
pub inline_opts: Option<InlineOptions>,
pub root_import: Option<ImportRoot>,
pub name_ident: Ident,
pub generics: Generics,
pub variant_list: Vec<Variant>,
}Expand description
An enumeration that corresponds to an error type.
Fields§
§inline_opts: Option<InlineOptions>The inline behavior for this enumeration.
root_import: Option<ImportRoot>The import root for this enumeration.
name_ident: IdentThe identifier of this enumeration.
generics: GenericsThe generic parameters of this enumeration.
variant_list: Vec<Variant>The variant list of this enumeration.
Trait Implementations§
Source§impl Clone for Enumeration
impl Clone for Enumeration
Source§fn clone(&self) -> Enumeration
fn clone(&self) -> Enumeration
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 Enumeration
impl Debug for Enumeration
Source§impl Hash for Enumeration
impl Hash for Enumeration
Source§impl PartialEq for Enumeration
impl PartialEq for Enumeration
impl Eq for Enumeration
impl StructuralPartialEq for Enumeration
Auto Trait Implementations§
impl Freeze for Enumeration
impl RefUnwindSafe for Enumeration
impl !Send for Enumeration
impl !Sync for Enumeration
impl Unpin for Enumeration
impl UnwindSafe for Enumeration
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