pub struct IntegerVariant {
pub name: RustIdent,
pub value: i64,
pub doc: Option<String>,
}Expand description
A unit variant of an integer enum.
Fields§
§name: RustIdentRust variant identifier.
value: i64The discriminant, and the value on the wire.
doc: Option<String>Doc comment, if any.
Trait Implementations§
Source§impl Clone for IntegerVariant
impl Clone for IntegerVariant
Source§fn clone(&self) -> IntegerVariant
fn clone(&self) -> IntegerVariant
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 IntegerVariant
impl Debug for IntegerVariant
Source§impl PartialEq for IntegerVariant
impl PartialEq for IntegerVariant
impl StructuralPartialEq for IntegerVariant
Auto Trait Implementations§
impl Freeze for IntegerVariant
impl RefUnwindSafe for IntegerVariant
impl Send for IntegerVariant
impl Sync for IntegerVariant
impl Unpin for IntegerVariant
impl UnsafeUnpin for IntegerVariant
impl UnwindSafe for IntegerVariant
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