gst/format: Signed wrapper
Functions such as Segment::to_running_time_full
replicate the C
signature for the return type: an integer indicates whether the
resulting value must be interpreted as positive or negative.
In Rust, alternatives are usually represented using an enum
.
This commit implements an enum
wrapper to represent the sign
and adds functions to FormattedValue
to ease Signed
handling.
Fixes #394 (closed)