pub enum NumberKind {
Float,
Double,
}Expand description
Width refinement for a number-typed literal, mirroring IntKind.
format: float selects NumberKind::Float; everything else
(including format: double and an absent format) is NumberKind::Double.
Variants§
Trait Implementations§
Source§impl Clone for NumberKind
impl Clone for NumberKind
Source§fn clone(&self) -> NumberKind
fn clone(&self) -> NumberKind
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 moreimpl Copy for NumberKind
Source§impl Debug for NumberKind
impl Debug for NumberKind
Source§impl<'de> Deserialize<'de> for NumberKind
impl<'de> Deserialize<'de> for NumberKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for NumberKind
impl PartialEq for NumberKind
Source§fn eq(&self, other: &NumberKind) -> bool
fn eq(&self, other: &NumberKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for NumberKind
impl Serialize for NumberKind
impl StructuralPartialEq for NumberKind
Auto Trait Implementations§
impl Freeze for NumberKind
impl RefUnwindSafe for NumberKind
impl Send for NumberKind
impl Sync for NumberKind
impl Unpin for NumberKind
impl UnsafeUnpin for NumberKind
impl UnwindSafe for NumberKind
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