pub struct NumericLiteralParts {
pub integer_part: String,
pub exponent_part: Option<String>,
pub variant_part: Option<String>,
}Expand description
§Supported formats:
- Standard decimals:
123.4560.001.789123.3.e10
- Decimals with exponent:
1.23e104.56E-3789e+242e0
- Integer with exponent (no decimal point):
123e542E-1
- Special values:
NaN,nanInfinity,infinity
- Optional leading sign is supported for all formats:
-123.45,+123.45-Infinity,+Infinity-3.e10,+3.e10
Fields§
§integer_part: String§exponent_part: Option<String>§variant_part: Option<String>Trait Implementations§
Source§impl Clone for NumericLiteralParts
impl Clone for NumericLiteralParts
Source§fn clone(&self) -> NumericLiteralParts
fn clone(&self) -> NumericLiteralParts
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 NumericLiteralParts
impl Debug for NumericLiteralParts
Source§impl Display for NumericLiteralParts
impl Display for NumericLiteralParts
Source§impl From<&str> for NumericLiteralParts
impl From<&str> for NumericLiteralParts
Source§impl From<String> for NumericLiteralParts
impl From<String> for NumericLiteralParts
Source§impl PartialEq for NumericLiteralParts
impl PartialEq for NumericLiteralParts
impl Eq for NumericLiteralParts
impl StructuralPartialEq for NumericLiteralParts
Auto Trait Implementations§
impl Freeze for NumericLiteralParts
impl RefUnwindSafe for NumericLiteralParts
impl Send for NumericLiteralParts
impl Sync for NumericLiteralParts
impl Unpin for NumericLiteralParts
impl UnwindSafe for NumericLiteralParts
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> CustomError for T
impl<T> CustomError for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more