wiwi/
prelude_std.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
//! Prelude exporting types from the Rust standard library (`std`)

pub extern crate alloc as alloc_crate;
pub extern crate core;
pub extern crate std;

pub use std::{
	assert,
	assert_eq,
	assert_ne,
	debug_assert,
	debug_assert_eq,
	debug_assert_ne,

	print,
	println,
	eprint,
	eprintln,
	format,
	format_args,

	panic,
	compile_error,
	todo,
	unreachable,

	cfg,
	file,
	line,
	column,

	concat,
	dbg,
	stringify,
	vec,

	array,
	env,
	hint,
	ptr,
	slice,
	str
};

pub use std::alloc::{
	self as alloc_mod,
	alloc,
	alloc_zeroed,
	dealloc,
	realloc
};
pub use std::any::{
	Any,
	TypeId,
	type_name,
	type_name_of_val
};
pub use std::borrow::{
	Borrow,
	BorrowMut,
	Cow,
	ToOwned
};
pub use std::boxed::Box;
pub use std::cell::{ self, UnsafeCell };
pub use std::clone::{ self, Clone };
pub use std::cmp::{
	self,
	Eq,
	Ord,
	PartialEq,
	PartialOrd
};
pub use std::convert::{
	AsMut,
	AsRef,
	From,
	Into,
	TryFrom,
	TryInto,
	Infallible,
	identity
};
pub use std::default::Default;
pub use std::fmt::{ self, Debug, Display };
pub use std::future::{ self, Future, IntoFuture };
pub use std::hash::{ self, Hash, Hasher };
pub use std::iter::{
	self,
	Iterator,
	FromIterator,
	IntoIterator,
	DoubleEndedIterator,
	ExactSizeIterator,
	Extend
};
pub use std::marker::{
	self,
	Copy,
	Send,
	Sync,
	Sized,
	Unpin,
	PhantomData,
	PhantomPinned
};
pub use std::mem::{
	self,
	ManuallyDrop,
	MaybeUninit,
	align_of,
	align_of_val,
	size_of,
	size_of_val,
	transmute,
	transmute_copy,
	drop,
	forget,
	needs_drop,
	replace,
	swap,
	take,
	zeroed
};
pub use std::ops::{
	self,
	Deref,
	DerefMut,
	Drop,
	Fn,
	FnMut,
	FnOnce
};
pub use std::option::{ self, Option, Option::Some, Option::None };
pub use std::panic::{ UnwindSafe, RefUnwindSafe };
pub use std::result::{ self, Result, Result::Ok, Result::Err };
pub use std::rc::{ Rc, Weak as RcWeak };
pub use std::string::{ self, String, ToString };
pub use std::sync::{ Arc, Weak as ArcWeak };
pub use std::sync::atomic::{
	self,
	AtomicBool,
	AtomicI8,
	AtomicI16,
	AtomicI32,
	AtomicI64,
	// AtomicI128,
	AtomicIsize,
	AtomicU8,
	AtomicU16,
	AtomicU32,
	AtomicU64,
	// AtomicU128,
	AtomicUsize,
	AtomicPtr,
	compiler_fence,
	fence
};
pub use std::vec::Vec;