mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-22 01:21:05 +00:00
57d8d46ab6
Some operations were implemented on types that wouldn't result in the expected physical unit. E.g.: - `ClockTime / ClockTime` results in a unit-less factor. - `u64 / ClockTime` would result in a `1 / ClockTime`. Since we don't use any `Frequency` type, this operation is removed. Users should use the `ClockTime` accessors to compute the expected value. This commit also adds: - multiplications with integers as the left hand side operands. - `Partial{Eq,Ord} for `Signed<T>` with `T` as left hand side operand. - `opt_add` / `opt_sub` for `Signed<T>` with `T` as left or right hand side operands. - missing tests for `Partial{Eq,Ord}` and `OptionOrd`. This implementation can interfere with unrelated code and was removed: - `Signed<usize>.` `PartialOrd` makes existing code computing the len of slices needing type annotation because the len is later used in a comparison for which the compiler is unable to determine if the len is `Signed<usize>` or `usize`. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |