Crate irox_tools
Source - ansi_colors
- List of some basic ANSI Console colors
- arrays
- Functions and tools for manipulating arrays of items.
- assert
- Additional assert macros for tests
- base64
- RFC-4648 Compliant Base64, Base32, and Base16 encoders and decoders
- bases
- buf
- Stack Buffers
- codec
- A
Codec is a trait that provides encode and decode to convert to/from different byte
encoding formats - errors
- Macros to aid in the creation of crate-level error structs
- f32
- A collection of utilities for the f32 built-in
- f64
- A collection of utilities for the f64 built-in
- fmt
- Formatting structs and traits
- fs
- Filesystem utilities
- hash
- Message Hash (Digest) functions
- hex
- Hexdump & Hex manipulation
- identifier
- An Identifier represents a way to uniquely identify an item, whether as a
String, u64,
or UUID. - iterators
- Iterators adds the
Itertools Trait, which adds a number of additional
helper methods to the Iterator Trait. - macros
- Macros for better documentation.
- map
std - math
- options
MaybeInto, MaybeFrom, and MaybeMap - traits to improve chaining of optional functions and erasing Results- packetio
alloc - Traits for packetization of data and movement of packets of data
- random
- Pseudo-Random Number Generators (PRNGs)
- read
std - Helper functions around
std::io::Read - scanner
std - A utility to scan for tokens in a byte stream
- sync
std - More complex synchronization primitives than in the STD.
- u8
- A collection of utilities for the u8 built-in
- u16
- u32
- u64
- A collection of utilities for the u64 built-in
- uuid
- A basic implementation of a UUID
- vec
alloc - Bolt-ons for
Vec and VecDeque - better displays and iteration tools
- array
- assert_eq_eps
- Assert Equal with floating point epsilon/delta values.
|left-right| <= eps - assert_eq_eps_slice
- Assert equal w/ hex value slices, for slices of floating-point elements
- assert_eq_hex
- Assert equal w/ hex value, for elements that implement
core::fmt::UpperHex - assert_eq_hex_slice
- Assert equal w/ hex value slices, for slices of elements that implement
core::fmt::UpperHex - cfg_docs
- Use for things that are only valid for documentation generation
- cfg_feature_alloc
- Enables feature-specific code.
Use this macro instead of
cfg(feature = "alloc") to generate docs properly. - cfg_feature_bits
- Enables feature-specific code.
Use this macro instead of
cfg(feature = "bits") to generate docs properly. - cfg_feature_egui
- Enables feature-specific code.
Use this macro instead of
cfg(feature = "egui") to generate docs properly. - cfg_feature_git
- Enables feature-specific code.
Use this macro instead of
cfg(feature = "git") to generate docs properly. - cfg_feature_nostd
- Enables feature-specific code.
Use this macro instead of
cfg(feature = "std") to generate docs properly. - cfg_feature_plots
- Enables feature-specific code.
Use this macro instead of
cfg(feature = "plots") to generate docs properly. - cfg_feature_serde
- Enables feature-specific code.
Use this macro instead of
cfg(feature = "serde") to generate docs properly. - cfg_feature_std
- Enables feature-specific code.
Use this macro instead of
cfg(feature = "std") to generate docs properly. - cfg_unix
- Enables Unix-specific code.
Use this macro instead of
cfg(unix) to generate docs properly. - cfg_windows
- Enables Windows-specific code.
Use this macro instead of
cfg(windows) to generate docs properly. - debug_assert_eq_eps
- format
- Variant of the
format! macro that doesn’t require std::io::Write - format_bg_color
- Creates a ANSI Terminal Background Color Code using the specified RGB values
- format_fg_color
- Creates a ANSI Terminal Foreground Color Code using the specified RGB values
- hex
- Const compile-time evaluation of the provided string literals
- impl_err_fn
- Macro to template out standard builder functions for types build with
impl_error - impl_error
alloc - Macro to build a fairly standard error struct.
- impl_from_error
- Macro to implement from converters for error types generated with
impl_error! - static_init
std - Creates a static lazy initialization variable function.
- IntegerValue
- An integer!
- StrWrapper
alloc - Wrapper enum around the common string representations
- ToF64
- Converts this value into a F64 using the
as cast operation. - ToSigned
- Converts this value to the signed version using the
as cast operation. - ToU64
- ToUnsigned
- Converts this value to the unsigned version using the
as cast operation. - WrappingAdd
- Wrapping (modular) addition. Computes
self + rhs, wrapping around at the boundary of the type. - WrappingMul
- Wrapping (modular) multiplication. Computes
self * rhs, wrapping around at the boundary of the type. - WrappingSub
- Wrapping (modular) subtraction. Computes
self - rhs, wrapping around at the boundary of the type.