Home
last modified time | relevance | path

Searched refs:LitFloat (Results 1 – 10 of 10) sorted by relevance

/external/rust/crates/syn/tests/
Dtest_lit.rs10 use syn::{Lit, LitFloat, LitInt, LitStr};
213 assert_eq!("-1.5", LitFloat::new("-1.5", span).to_string()); in negative()
214 assert_eq!("-1.5f32", LitFloat::new("-1.5f32", span).to_string()); in negative()
215 assert_eq!("-1.5f64", LitFloat::new("-1.5f64", span).to_string()); in negative()
/external/rust/crates/syn/src/
Dlit.rs41 Float(LitFloat),
101 pub struct LitFloat {
453 impl LitFloat { impl
466 LitFloat { in new()
506 impl From<Literal> for LitFloat { implementation
510 LitFloat { in from()
523 impl Display for LitFloat { implementation
608 impl Debug for LitFloat { implementation
708 lit_extra_traits!(LitFloat);
805 Lit::Float(LitFloat { in parse_negative_lit()
[all …]
Dtoken.rs99 use crate::lit::{Lit, LitBool, LitByte, LitByteStr, LitChar, LitFloat, LitInt, LitStr};
193 impl_token!("floating point literal" LitFloat);
Dlib.rs381 Lit, LitBool, LitByte, LitByteStr, LitChar, LitFloat, LitInt, LitStr, StrStyle,
Dexpr.rs1611 let float_token: Option<LitFloat> = input.parse()?; in trailer_helper()
1684 let float_token: Option<LitFloat> = input.parse()?; in trailer_expr()
2897 fn multi_index(e: &mut Expr, dot_token: &mut Token![.], float: LitFloat) -> Result<bool> { in multi_index()
/external/rust/crates/syn/src/gen/
Dfold.rs455 fn fold_lit_float(&mut self, i: LitFloat) -> LitFloat { in fold_lit_float() argument
2321 pub fn fold_lit_float<F>(f: &mut F, node: LitFloat) -> LitFloat in fold_lit_float()
Dvisit_mut.rs455 fn visit_lit_float_mut(&mut self, i: &mut LitFloat) { in visit_lit_float_mut() argument
2595 pub fn visit_lit_float_mut<V>(v: &mut V, node: &mut LitFloat) in visit_lit_float_mut()
Dvisit.rs454 fn visit_lit_float(&mut self, i: &'ast LitFloat) { in visit_lit_float() argument
2595 pub fn visit_lit_float<'ast, V>(v: &mut V, node: &'ast LitFloat) in visit_lit_float()
Deq.rs1276 impl Eq for LitFloat {} implementation
/external/rust/crates/syn/tests/debug/
Dgen.rs3476 impl Debug for Lite<syn::LitFloat> {