oxedyne/fe2o3/fe2o3_core/src/prelude.rs
1.4 KiB, 14 runs
created by r1870400018:116, which is this file's identity for as long as the history lasts, whatever it is later renamed to
download · who wrote it · its history
| 1 | pub use crate::{ |
| 2 | self as oxedyne_fe2o3_core, |
| 3 | byte::B32, |
| 4 | Outcome, |
| 5 | GenTag, |
| 6 | // Error handling and checking macros |
| 7 | err, |
| 8 | errmsg, |
| 9 | ok, |
| 10 | res, |
| 11 | catch, |
| 12 | catch_other, |
| 13 | // Fallible operations and conversions |
| 14 | try_into, |
| 15 | try_add, |
| 16 | try_sub, |
| 17 | try_mul, |
| 18 | try_div, |
| 19 | try_rem, |
| 20 | try_range, |
| 21 | // Metaprogramming macros |
| 22 | new_enum, |
| 23 | new_type, |
| 24 | // String output macros |
| 25 | dump, |
| 26 | fmt, |
| 27 | fmt_typ, |
| 28 | msg, |
| 29 | str, |
| 30 | // Synchronisation macros |
| 31 | lock_read, |
| 32 | lock_write, |
| 33 | lock_mutex, |
| 34 | lock_mutex_thread, |
| 35 | lock_read_or_recover, |
| 36 | lock_write_or_recover, |
| 37 | lock_mutex_or_recover, |
| 38 | // Test macros |
| 39 | req, |
| 40 | test_it, |
| 41 | }; |
| 42 | pub use crate::mem::get_memory_usage_mb; |
| 43 | pub use crate::error::{ |
| 44 | Error, |
| 45 | ErrMsg, |
| 46 | ErrTag, |
| 47 | }; |
| 48 | // Logging. |
| 49 | pub use crate::{ |
| 50 | log, |
| 51 | error, |
| 52 | fault, |
| 53 | warn, |
| 54 | info, |
| 55 | test, |
| 56 | debug, |
| 57 | trace, |
| 58 | log_finish, |
| 59 | log_finish_wait, |
| 60 | log_in_finish_wait, |
| 61 | log_out_finish_wait, |
| 62 | log_get_level, |
| 63 | log_get_config, |
| 64 | log_set_level, |
| 65 | log_set_config, |
| 66 | set_log_out, |
| 67 | log_get_file_path, |
| 68 | log_get_streams, |
| 69 | log::{ |
| 70 | base::{ |
| 71 | LOG, |
| 72 | LogLevel, |
| 73 | }, |
| 74 | bot::{ |
| 75 | self as bot_log, |
| 76 | LogBot, |
| 77 | }, |
| 78 | stream::{ |
| 79 | async_log, |
| 80 | sync_log, |
| 81 | }, |
| 82 | }, |
| 83 | }; |
| 84 | // Traits |
| 85 | pub use std::str::FromStr; // Trait needed for log_level! macro. |
| 86 | pub use crate::conv::IntoInner; |