Rework ClockTime & optional formatted values
This MR aims at fixing #234 (closed).
IMHO, all the machinery is in place, however this requires a survey of the functions in order to identify candidates for mandatory arguments and/or return values.
Just like for the *Result
MR, the design relies on the new TryFromGlib
trait
defined in gtk-rs/glib
. This trait
allows glib types with an undefined value to be constructed as an Option<T>
. This MR also uses the gir
un-merged changes so that the we can auto-generate some functions which benefit from Result<*Success, *Error>
as a return value or as an argument.
See below for illustrations of usage.