Nutmeg 0.1.0
-
API change: The
Writetype representing the destination is no longer part of the visible public signature ofView, to hide complexity and since it is not helpful to most callers. -
API change: Renamed
View::to_stderrtoView::new_stderr. -
New:
percent_doneandestimate_remainingfunctions to help in rendering progress bars. -
New: The
modelsmod provides some generally-useful basic models, specificallymodels::StringPair,models::UnboundedModelandmodels::LinearModel. These build only on the public interface of Nutmeg, so also constitute examples of what can be done in application-defined models. -
New:
View::finishremoves the progress bar (if painted) and returns theModel.View::abandonnow also returns the model. -
New:
Model::final_messageto let the model render a message to be printed when work is complete. -
New: The callback to
View::updatemay return a value, and this is passed back to the caller ofView::update. -
New:
models::BasicModelallows simple cases to supply both an initial value and a render function inline in theViewconstructor call, avoiding any need to define aModelstruct. -
New:
View::inspect_modelgives its callback a&mutto the model. -
New: Progress bars constructed by
View::newandView::new_stderrare disabled when$TERM=dumb.