Crate bp3d_util

Source
Expand description

Generic utilities not tied to any particular platform for use with other BP3D software.

Modules§

envenv
This module contains tools to simplify parsing environment variables.
extensionextension
Helper macro for writing extensions to any foreign type using sealed traits.
formatformat
Formatting utilities.
index_mapindex-map
A map with the key stored as part of the value.
pathpath
Path based utilities.
resultresult
Result utilities.
simple_errorsimple-error
Error umbrella type generation macro.
stringstring
String utilities.
tziftzif
A simple TZIF reader module used to get UTC to local offset.

Macros§

extensionextension
Generate a sealed trait with a given name and content.
hack_rust_buggy_macrossimple-error
This macro is internal and called by another macro.
simple_errorsimple-error
Generates a simple enum which maps multiple error types and implements Error and Display automatically. This optionally can generate From implementations on demand.
try_optresult
Generates a match block which returns errors to circumvent rust borrow checker defects.
try_resresult
Generates a match block which returns errors to circumvent rust borrow checker defects.
typed_identsimple-error
This macro is internal and called by another macro.