wiwi_util/
prelude.rs

1//! Prelude exporting types from the Rust standard library (`std`)
2
3pub extern crate alloc as alloc_crate;
4pub extern crate core;
5pub extern crate std;
6
7pub use std::{
8	assert,
9	assert_eq,
10	assert_ne,
11	debug_assert,
12	debug_assert_eq,
13	debug_assert_ne,
14
15	print,
16	println,
17	eprint,
18	eprintln,
19	format,
20	format_args,
21
22	panic,
23	compile_error,
24	todo,
25	unreachable,
26
27	cfg,
28	file,
29	line,
30	column,
31
32	concat,
33	dbg,
34	stringify,
35	vec,
36
37	thread_local,
38
39	array,
40	env,
41	hint,
42	ptr,
43	str
44};
45
46pub use std::alloc::{
47	self as alloc_mod,
48	alloc,
49	alloc_zeroed,
50	dealloc,
51	realloc
52};
53pub use std::any::{
54	Any,
55	TypeId,
56	type_name,
57	type_name_of_val
58};
59pub use std::borrow::{
60	Borrow,
61	BorrowMut,
62	Cow,
63	ToOwned
64};
65pub use std::boxed::Box;
66pub use std::cell::{ self, UnsafeCell };
67pub use std::clone::{ self, Clone };
68pub use std::cmp::{
69	self,
70	Eq,
71	Ord,
72	PartialEq,
73	PartialOrd
74};
75pub use std::convert::{
76	AsMut,
77	AsRef,
78	From,
79	Into,
80	TryFrom,
81	TryInto,
82	Infallible,
83	identity
84};
85pub use std::default::Default;
86pub use std::fmt::{ self, Debug, Display };
87pub use std::fs::{ self, File };
88pub use std::future::{ self, Future, IntoFuture };
89pub use std::hash::{ self, Hash, Hasher };
90pub use std::iter::{
91	self,
92	Iterator,
93	FromIterator,
94	IntoIterator,
95	DoubleEndedIterator,
96	ExactSizeIterator,
97	Extend
98};
99pub use std::marker::{
100	self,
101	Copy,
102	Send,
103	Sync,
104	Sized,
105	Unpin,
106	PhantomData,
107	PhantomPinned
108};
109pub use std::mem::{
110	self,
111	ManuallyDrop,
112	MaybeUninit,
113	align_of,
114	align_of_val,
115	size_of,
116	size_of_val,
117	transmute,
118	transmute_copy,
119	drop,
120	forget,
121	needs_drop,
122	replace,
123	swap,
124	take,
125	zeroed
126};
127pub use std::num::{ self, NonZero, Saturating, Wrapping };
128pub use std::ops::{
129	self,
130	Deref,
131	DerefMut,
132	Drop,
133	Fn,
134	FnMut,
135	FnOnce
136};
137pub use std::option::{ self, Option, Option::Some, Option::None };
138pub use std::panic::{ UnwindSafe, RefUnwindSafe };
139pub use std::path::{ self, Path, PathBuf };
140pub use std::result::{ self, Result, Result::Ok, Result::Err };
141pub use std::rc::{ Rc, Weak as RcWeak };
142pub use std::string::{ self, String, ToString };
143pub use std::sync::{ Arc, Weak as ArcWeak };
144pub use std::sync::atomic::{
145	self,
146	AtomicBool,
147	AtomicI8,
148	AtomicI16,
149	AtomicI32,
150	AtomicI64,
151	// AtomicI128,
152	AtomicIsize,
153	AtomicU8,
154	AtomicU16,
155	AtomicU32,
156	AtomicU64,
157	// AtomicU128,
158	AtomicUsize,
159	AtomicPtr,
160	compiler_fence,
161	fence
162};
163pub use std::vec::Vec;
164
165// "augmented" modules by wiwi
166pub use crate::slice;