Struct LitFloat
struct LitFloat { ... }
A floating point literal: 1f64 or 1.0e10f64.
Must be finite. May not be infinite or NaN.
Implementations
impl LitFloat
fn new(repr: &str, span: Span) -> Selffn base10_digits(self: &Self) -> &strfn base10_parse<N>(self: &Self) -> Result<N> where N: FromStr, <N as >::Err: Displayfn suffix(self: &Self) -> &strfn span(self: &Self) -> Spanfn set_span(self: &mut Self, span: Span)fn token(self: &Self) -> Literal
impl Clone for LitFloat
fn clone(self: &Self) -> Self
impl Debug for LitFloat
fn fmt(self: &Self, formatter: &mut Formatter<'_>) -> Result
impl Display for LitFloat
fn fmt(self: &Self, formatter: &mut Formatter<'_>) -> Result
impl Eq for LitFloat
impl Freeze for LitFloat
impl From for LitFloat
fn from(token: Literal) -> Self
impl Hash for LitFloat
fn hash<H>(self: &Self, state: &mut H) where H: Hasher
impl Parse for LitFloat
fn parse(input: ParseStream<'_>) -> Result<Self>
impl PartialEq for LitFloat
fn eq(self: &Self, other: &Self) -> bool
impl RefUnwindSafe for LitFloat
impl Send for LitFloat
impl Sync for LitFloat
impl ToTokens for LitFloat
fn to_tokens(self: &Self, tokens: &mut TokenStream)
impl Token for LitFloat
impl Unpin for LitFloat
impl UnsafeUnpin for LitFloat
impl UnwindSafe for LitFloat
impl<T> Any for LitFloat
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for LitFloat
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for LitFloat
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for LitFloat
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for LitFloat
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Spanned for LitFloat
fn span(self: &Self) -> Span
impl<T> ToOwned for LitFloat
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T> ToString for LitFloat
fn to_string(self: &Self) -> String
impl<T, U> Into for LitFloat
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for LitFloat
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for LitFloat
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>