core
core tier (foundation) - safe, target-independent.
Owns: List, Dict, Set, Tuple, Int, Float, ops, iter, sync (Atomic/Mutex),
task, time (Duration, Instant), par, fmt, reflect, future,
crypto (algorithms), encoding, io (byte streams, stdio).
Bootstraps operator dispatch (#[infix], #[prefix], #[postfix]) and
literal handlers (#[literal]).
User code gets an implicit use core::prelude::*;,
the library's own modules see all of core::**.
Modules
arrayClone / Copy / Default / Debug / PartialEq / Eq / Hash for fixed arrays[T; N], element-wise, and PartialOrd / Ord, lexicographic; andArray<T, N>, the n-dimensional array.benchthe enginenabi benchdrives.channelmessage passing between threads.cmptotal equality, ordering and hashing.collectionsList / Dict / Set / Slice, Deque, BinaryHeap, SortedDict / SortedSet, and the frozen (read-only,Sync) List / Dict / Set.convertconversion traits and primitive impls.cryptoCryptographic algorithms: pure computation, no OS (randomness isstd::random).encodingbytes as text (RFC 4648):hexandbase64.errorResult<T, E>, an error kept as a value.fmtFormatter,Display/Debug,FormatSpecand the f-string lowering targets.futureFuture/Poll/Context/Waker/IntoFuture.hashwhat aHashimpl writes to:Hasher,BuildHasher, the process-keyedRandomStatethatDictandSetdefault to with its SipHash-1-3DefaultHasher, and the caller-keyedSipHasher13/SipHasher24, whose output is stable.hinthints the optimizer honors.indexIndexing + slicing traits.ioIoError, the byte-stream traitsRead,BufRead,Write,Seekand their async twins, the buffers,Cursor,copyand the standard streams.iterIterator + IntoIterator + FromIterator.markerMarker traits used by#[derive(..)]and other compiler-driven semantics.numthe primitive types' operator / comparison trait impls.opsOperator traits: the source of every operator token.panicthe compiler hookspanic_fn/oom_fn/unreachable_fn: print a message to stderr and exit 101.pardata-parallel helpers, on the process's task executor (core::task): from async code on the worker it runs on, from sync code with the caller as a guest worker.preludethe names every file outside the library sees bare: user code gets an implicituse core::prelude::*;unless the file says#![no_implicit_nabi].printprint/println/eprint/eprintln,dbganddisplay(the prelude names them, so they need nouse).rangeRange / RangeInclusive / RangeFrom / RangeTo / RangeToInclusive / RangeFull.reflectReflect/Inspect.simdportable SIMD:Simd<T, N>holdsNlanes of a numberT, and its operators work on every lane at once.strstrmethods and trait impls.streamStream/IntoStream/FromStream.syncconcurrency primitives.tasktasks on the work-stealing executor andblock_on;Duration/Instantarecore::time.timeDuration/Instant.tupleClone / Copy / Default / Debug / PartialEq / Eq / Hash for tuples of 1 to 12 elements, component-wise, and PartialOrd / Ord, lexicographic.