Searched refs:byte_string (Results 1 – 10 of 10) sorted by relevance
6 byte_string: (), field
2 --> tests/ui/expected-string/byte_string.rs:5:22
145 assert_eq!(Literal::byte_string(b"").to_string(), "b\"\""); in literal_byte_string()147 Literal::byte_string(b"\0\t\n\r\"\\2\x10").to_string(), in literal_byte_string()
252 let b = proc_macro2::Literal::byte_string(string.as_bytes()); in cstr_expr()
900 pub fn byte_string(bytes: &[u8]) -> Literal { in byte_string() method902 Literal::Compiler(proc_macro::Literal::byte_string(bytes)) in byte_string()904 Literal::Fallback(fallback::Literal::byte_string(bytes)) in byte_string()
1227 pub fn byte_string(s: &[u8]) -> Literal { in byte_string() method1228 Literal::_new(imp::Literal::byte_string(s)) in byte_string()
323 } else if let Ok(ok) = byte_string(input) { in literal_nocapture()404 fn byte_string(input: Cursor) -> Result<Cursor, Reject> { in byte_string() function
955 pub fn byte_string(bytes: &[u8]) -> Literal { in byte_string() method
252 let mut token = Literal::byte_string(value); in new()
2101 .map(|(name, _)| Literal::byte_string(name.as_bytes())) in deserialize_identifier()