gstreamer-rs/gstreamer/src/format
François Laignel 49faa03c98 gst/format: make from_u64 constructors const
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.
2022-10-18 11:24:57 +02:00
..
clock_time.rs gst/format: make from_u64 constructors const 2022-10-18 11:24:57 +02:00
clock_time_serde.rs format/specific: don't expose inner as pub 2022-10-10 19:23:35 +02:00
compatible.rs gst/lib: cleanup format re-exports 2022-10-10 15:10:10 +02:00
format_serde.rs gst/format: introduce Constructor traits 2022-10-18 11:24:08 +02:00
generic.rs gst/format: make from_u64 constructors const 2022-10-18 11:24:57 +02:00
macros.rs gst/format: new panicking constructors and some Percent fixes 2022-10-11 13:25:53 +02:00
mod.rs gst/format: make from_u64 constructors const 2022-10-18 11:24:57 +02:00
signed.rs format/Other: use u64 internally instead of i64 2022-10-09 20:00:38 +02:00
specific.rs gst/format: make from_u64 constructors const 2022-10-18 11:24:57 +02:00
undefined.rs gst/format: make from_u64 constructors const 2022-10-18 11:24:57 +02:00