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
137 assert_eq!(Literal::byte_string(b"").to_string(), "b\"\""); in literal_byte_string()139 Literal::byte_string(b"\0\t\n\r\"\\2\x10").to_string(), in literal_byte_string()143 Literal::byte_string(b"a\00b\07c\08d\0e\0").to_string(), in literal_byte_string()
852 pub fn byte_string(bytes: &[u8]) -> Literal { in byte_string() method854 Literal::Compiler(proc_macro::Literal::byte_string(bytes)) in byte_string()856 Literal::Fallback(fallback::Literal::byte_string(bytes)) in byte_string()
1220 pub fn byte_string(s: &[u8]) -> Literal { in byte_string() method1221 Literal::_new(imp::Literal::byte_string(s)) in byte_string()
350 } else if let Ok(ok) = byte_string(input) { in literal_nocapture()437 fn byte_string(input: Cursor) -> Result<Cursor, Reject> { in byte_string() function
1020 pub fn byte_string(bytes: &[u8]) -> Literal { in byte_string() method
252 let b = proc_macro2::Literal::byte_string(string.as_bytes()); in cstr_expr()
263 let mut token = Literal::byte_string(value); in new()
2200 .map(|alias| Literal::byte_string(alias.as_bytes())); in deserialize_identifier()