Lines Matching refs:string

230 /// Attempts to break the string into tokens and parse those tokens into a token
233 /// May fail for a number of reasons, for example, if the string contains
297 /// Prints the token stream as a string that is supposed to be losslessly
555 /// A literal character (`'a'`), string (`"hello"`), number (`2.3`), etc.
610 /// Prints the token tree as a string that is supposed to be losslessly
668 /// a string.
757 /// Prints the group as a string that should be losslessly convertible back
837 /// Prints the punctuation character as a string that should be losslessly
861 /// - The empty string is not an identifier. Use `Option<Ident>`.
873 /// A new ident can be created from a string using the `Ident::new` function.
905 /// A string representation of the ident is available through the `to_string()`
913 /// // Examine the ident as a string.
933 /// Creates a new `Ident` with the given `string` as well as the specified
936 /// The `string` argument must be a valid identifier permitted by the
957 /// Panics if the input string is neither a keyword nor a legal variable
958 /// name. If you are not sure whether the string contains an identifier and
965 pub fn new(string: &str, span: Span) -> Self {
966 Ident::_new(imp::Ident::new_checked(string, span.inner))
970 /// `string` argument must be a valid identifier permitted by the language
975 pub fn new_raw(string: &str, span: Span) -> Self {
976 Ident::_new(imp::Ident::new_raw_checked(string, span.inner))
1026 /// Prints the identifier as a string that should be losslessly convertible back
1040 /// A literal string (`"hello"`), byte string (`b"hello"`), character (`'a'`),
1210 pub fn string(string: &str) -> Literal {
1211 Literal::_new(imp::Literal::string(string))
1219 /// Byte string literal.
1249 // a valid literal. This avoids reparsing/validating the literal's string