Module builder

Module builder 

Source
Expand description

By splitting the builder up into stages, we achieve two goals.

  • The order of calls is enforced, leading to more consistent code. E.g. calls to weak() or strong() should always directly follow the opening call.
  • The user is forced to add at least one pointer, making it impossible to create a report without pointers, which would lead to panics.

Structs§

ReportBuilderAbbreviated
ReportBuilderFull
ReportBuilderStage1
ReportBuilderStage2

Functions§

err
fatal
report
tips
untidy
warn