Lines Matching defs:string
372 /// Get the path to this source file as a string.
659 pub fn new_checked(string: &str, span: Span) -> Self {
661 Span::Compiler(s) => Ident::Compiler(proc_macro::Ident::new(string, s)),
662 Span::Fallback(s) => Ident::Fallback(fallback::Ident::new_checked(string, s)),
666 pub fn new_unchecked(string: &str, span: fallback::Span) -> Self {
667 Ident::Fallback(fallback::Ident::new_unchecked(string, span))
671 pub fn new_raw_checked(string: &str, span: Span) -> Self {
673 Span::Compiler(s) => Ident::Compiler(proc_macro::Ident::new_raw(string, s)),
674 Span::Fallback(s) => Ident::Fallback(fallback::Ident::new_raw_checked(string, s)),
678 pub fn new_raw_unchecked(string: &str, span: fallback::Span) -> Self {
679 Ident::Fallback(fallback::Ident::new_raw_unchecked(string, span))
836 pub fn string(t: &str) -> Literal {
838 Literal::Compiler(proc_macro::Literal::string(t))
840 Literal::Fallback(fallback::Literal::string(t))