Enum EnumVariantValue
pub enum EnumVariantValue
A constant value assigned to an enumeration variant.
Variants
-
Boolean(bool) A boolean constant.
-
Signed(i64) A signed constant.
-
Unsigned(u64) An unsigned constant.
Trait Implementations
impl Clone for EnumVariantValue
fn clone(&self) -> EnumVariantValue
impl Copy for EnumVariantValue
impl Debug for EnumVariantValue
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Eq for EnumVariantValue
impl Hash for EnumVariantValue
fn hash<__H: Hasher>(&self, state: &mut __H)
impl Ord for EnumVariantValue
fn cmp(&self, other: &EnumVariantValue) -> Ordering
impl PartialEq for EnumVariantValue
fn eq(&self, other: &EnumVariantValue) -> bool
impl PartialOrd for EnumVariantValue
fn partial_cmp(&self, other: &EnumVariantValue) -> Option<Ordering>
impl StructuralPartialEq for EnumVariantValue
Auto Trait Implementations
impl Freeze for EnumVariantValue
impl RefUnwindSafe for EnumVariantValue
impl Send for EnumVariantValue
impl Sync for EnumVariantValue
impl Unpin for EnumVariantValue
impl UnsafeUnpin for EnumVariantValue
impl UnwindSafe for EnumVariantValue
Blanket Implementations
impl<T> Any for EnumVariantValue
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for EnumVariantValue
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for EnumVariantValue
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for EnumVariantValue
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for EnumVariantValue
fn from(t: T) -> TReturns the argument unchanged.
impl<T> IntoEither for EnumVariantValue
impl<T> ToOwned for EnumVariantValue
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for EnumVariantValue
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for EnumVariantValue
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for EnumVariantValue
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>