pub struct EnumLiteral {
pub name: String,
pub value: Option<i32>,
}Expand description
Einzelner <enumerator>-Eintrag.
Fields§
§name: StringSymbolischer Name.
value: Option<i32>Numerischer Wert; None bedeutet implicit auto-numbering
(vorheriger + 1, beginnend bei 0).
Trait Implementations§
Source§impl Clone for EnumLiteral
impl Clone for EnumLiteral
Source§fn clone(&self) -> EnumLiteral
fn clone(&self) -> EnumLiteral
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 EnumLiteral
impl Debug for EnumLiteral
Source§impl Default for EnumLiteral
impl Default for EnumLiteral
Source§fn default() -> EnumLiteral
fn default() -> EnumLiteral
Returns the “default value” for a type. Read more
Source§impl PartialEq for EnumLiteral
impl PartialEq for EnumLiteral
Source§fn eq(&self, other: &EnumLiteral) -> bool
fn eq(&self, other: &EnumLiteral) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for EnumLiteral
impl StructuralPartialEq for EnumLiteral
Auto Trait Implementations§
impl Freeze for EnumLiteral
impl RefUnwindSafe for EnumLiteral
impl Send for EnumLiteral
impl Sync for EnumLiteral
impl Unpin for EnumLiteral
impl UnsafeUnpin for EnumLiteral
impl UnwindSafe for EnumLiteral
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