Searched refs:format (Results 1 – 9 of 9) sorted by relevance
| /rust/kernel/ |
| A D | str.rs | 610 macro_rules! format { macro 660 assert_eq!(format!("{hello_world}"), "hello, world!"); in test_cstr_display() 662 assert_eq!(format!("{non_printables}"), "\\x01\\x09\\x0a"); in test_cstr_display() 664 assert_eq!(format!("{non_ascii}"), "d\\xe9j\\xe0 vu"); in test_cstr_display() 666 assert_eq!(format!("{good_bytes}"), "\\xf0\\x9f\\xa6\\x80"); in test_cstr_display() 678 assert_eq!(format!("{cstr}"), ALL_ASCII_CHARS); in test_cstr_display_all_bytes() 698 assert_eq!(format!("{hello_world}"), "hello, world!"); in test_bstr_display() 700 assert_eq!(format!("{escapes}"), "_\\t_\\n_\\r_\\_'_\"_"); in test_bstr_display() 702 assert_eq!(format!("{others}"), "\\x01"); in test_bstr_display() 704 assert_eq!(format!("{non_ascii}"), "d\\xe9j\\xe0 vu"); in test_bstr_display() [all …]
|
| /rust/macros/ |
| A D | vtable.rs | 64 let gen_const_name = format!("HAS_{}", f.to_uppercase()); in vtable() 83 let gen_const_name = format!("HAS_{}", f.to_uppercase()); in vtable()
|
| A D | concat_idents.rs | 21 let res = Ident::new(&format!("{a}{b}"), b.span()); in concat_idents()
|
| A D | kunit.rs | 104 let kunit_wrapper_fn_name = format!("kunit_rust_wrapper_{test}"); in kunit_tests() 106 let kunit_wrapper = format!( in kunit_tests()
|
| A D | module.rs | 43 format!( in emit_base() 51 format!("{field}={content}\0") in emit_base() 204 format!( in module()
|
| /rust/pin-init/internal/src/ |
| A D | pin_data.rs | 108 format!( in replace_self_and_deny_type_defs()
|
| /rust/pin-init/examples/ |
| A D | static_init.rs | 98 .name(format!("worker #{i}")) in main()
|
| A D | pthread_mutex.rs | 163 .name(format!("worker #{i}")) in main()
|
| A D | mutex.rs | 204 .name(format!("worker #{i}")) in main()
|
Completed in 12 milliseconds