mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-06-28 02:50:38 +00:00
This commit makes the formatted values' main constructors `const`, so that they can be used in constant definitions. `from_usize` constructors can't be made const because `try_into` can't be used in `const` functions as of rustc 1.64.0. Same for `Percent::from_ratio`: floating point arithmetic is not allowed. |
||
---|---|---|
.. | ||
clock_time.rs | ||
clock_time_serde.rs | ||
compatible.rs | ||
format_serde.rs | ||
generic.rs | ||
macros.rs | ||
mod.rs | ||
signed.rs | ||
specific.rs | ||
undefined.rs |