Available on crate feature
core only.Expand description
Provides core functionality for nstd.
The entire nstd.core module is dependency free and makes no use of Rust’s std library,
making it fit for resource constrained/embedded environments.
Modules§
- alloc
- Provides useful types for memory allocation support.
- cstr
- Unowned C string slices.
- cty
- Provides functions for examining and operating on character types.
- def
- Common types used throughout
nstd. - fty
- Provides functions for examining and operating on floating point types.
- ity
- Provides functions for examining and operating on integral types.
- math
- Low level math operations.
- mem
- Contains mostly unsafe functions for interacting with raw memory.
- ops
- Operator overloading for types and operators that may cause overflow.
- optional
- Represents an optional (possibly uninitialized) value.
- ptr
- A sized pointer to some arbitrary type.
- range
- A numerical range.
- result
- Defines a “result” type with success and error variants.
- slice
- A view into a sequence of values in memory.
- str
- An unowned view into a UTF-8 encoded byte string.
- time
- Low level time utilities.
- unichar
- A Unicode scalar value.
Functions§
- nstd_
core_ abort - Terminates the program immediately in an abnormal fashion.
- nstd_
core_ panic - Invokes the runtime’s panic handler.
- nstd_
core_ ⚠panic_ with_ msg - Invokes the runtime’s panic handler with a UTF-8 encoded payload.