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.
  • 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.
  • 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.
  • typed_identsimple-error
    This macro is internal and called by another macro.