Home
last modified time | relevance | path

Searched refs:format (Results 1 – 9 of 9) sorted by relevance

/rust/kernel/
A Dstr.rs610 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 Dvtable.rs64 let gen_const_name = format!("HAS_{}", f.to_uppercase()); in vtable()
83 let gen_const_name = format!("HAS_{}", f.to_uppercase()); in vtable()
A Dconcat_idents.rs21 let res = Ident::new(&format!("{a}{b}"), b.span()); in concat_idents()
A Dkunit.rs104 let kunit_wrapper_fn_name = format!("kunit_rust_wrapper_{test}"); in kunit_tests()
106 let kunit_wrapper = format!( in kunit_tests()
A Dmodule.rs43 format!( in emit_base()
51 format!("{field}={content}\0") in emit_base()
204 format!( in module()
/rust/pin-init/internal/src/
A Dpin_data.rs108 format!( in replace_self_and_deny_type_defs()
/rust/pin-init/examples/
A Dstatic_init.rs98 .name(format!("worker #{i}")) in main()
A Dpthread_mutex.rs163 .name(format!("worker #{i}")) in main()
A Dmutex.rs204 .name(format!("worker #{i}")) in main()

Completed in 12 milliseconds