Lines Matching refs:str
7 use core::str::FromStr;
111 fn from_str(src: &str) -> Result<TokenStream, LexError> {
123 fn proc_macro_parse(src: &str) -> Result<proc_macro::TokenStream, LexError> {
659 pub fn new_checked(string: &str, span: Span) -> Self {
666 pub fn new_unchecked(string: &str, span: fallback::Span) -> Self {
671 pub fn new_raw_checked(string: &str, span: Span) -> Self {
678 pub fn new_raw_unchecked(string: &str, span: fallback::Span) -> Self {
719 T: ?Sized + AsRef<str>,
779 pub unsafe fn from_str_unchecked(repr: &str) -> Self {
836 pub fn string(t: &str) -> Literal {
903 fn from_str(repr: &str) -> Result<Self, Self::Err> {