gstreamer-rs/gstreamer/src
François Laignel dcf6d16496 gst/format: new panicking constructors and some Percent fixes
Previous proposition for constructing specific formatted values was
to use an operation such as `42 * Default::ONE` which, in retrospect,
doesn't seem idiomatic.

This commit adds `from_u64` and `from_usize` constructors for most
formatted values. Having `from_usize` is convenient when dealing with
quantities related to containers indices or length.

This also fixes the `Percent` from float constructors from which was
derived the `ONE` constant as well as previous display implementation.

Also removed the `pub` specifier for `Undefined` inner value. It wasn't
removed in a previous commit as `Undefined` can use the full range of
the inner type. But now, it seems preferable not to expose the inner
value for proper encapsulation and so as to reduce the differences with
other formatted values (kind of least astonishment principle).
2022-10-11 13:25:53 +02:00
..
auto Regenerate with latest gir 2022-10-07 20:30:24 +03:00
format gst/format: new panicking constructors and some Percent fixes 2022-10-11 13:25:53 +02:00
subclass gstreamer: Remove unnecessary trait bounds 2022-10-10 15:01:07 +03:00
allocation_params.rs gstreamer: Add bindings for querying allocation params 2021-10-12 17:16:21 +01:00
bin.rs gstreamer: Add many new doc aliases for C function 2021-12-12 17:52:32 +02:00
buffer.rs miniobject: implement ptr_eq() on ref type 2022-08-12 11:15:08 +02:00
buffer_cursor.rs manual code: fix-getters-def doc aliases 2021-05-03 20:46:57 +02:00
buffer_pool.rs gst/lib: cleanup format re-exports 2022-10-10 15:10:10 +02:00
buffer_serde.rs gstreamer: Fix a few new clippy warnings 2022-05-20 11:19:07 +03:00
bufferlist.rs gst/format: move related modules under a directory 2022-10-01 00:49:39 +02:00
bufferlist_serde.rs Add De/Serialization for most bitflag types 2022-05-06 09:05:52 +00:00
bus.rs Fix a new beta clippy warning 2022-08-10 10:27:27 +00:00
bus_unix.rs Add missing doc aliases to manual code 2021-05-19 22:36:18 +02:00
bus_windows.rs Add missing doc aliases to manual code 2021-05-19 22:36:18 +02:00
caps.rs gstreamer: caps: improve Debug implementation 2022-08-25 10:54:16 +02:00
caps_features.rs as_ptr() and as_mut_ptr() accessors are safe 2022-08-12 08:29:49 +02:00
caps_features_serde.rs Fix (new) clippy warnings 2021-08-03 10:08:32 +02:00
caps_serde.rs gstreamer: Update ron dev-dependency to 0.7 2021-10-23 10:40:24 +03:00
child_proxy.rs Update for glib::Object::new() API changes 2022-10-07 21:45:01 +03:00
clock.rs Update for additional translation trait impls in gtk-rs-core 2022-10-08 15:35:37 +03:00
context.rs Add missing doc aliases to manual code 2021-05-19 22:36:18 +02:00
control_binding.rs Add missing doc aliases to manual code 2021-05-19 22:36:18 +02:00
control_source.rs Add missing doc aliases to manual code 2021-05-19 22:36:18 +02:00
date_time.rs gstreamer: Rename DateTime constructors to replace the new_ prefix with from_ 2021-11-20 12:20:25 +02:00
date_time_serde.rs Rename feature 'ser_de' as 'serde' 2022-09-12 19:36:30 +02:00
device_monitor.rs Update minimum supported version to 1.14 2022-04-07 12:45:47 +03:00
device_provider.rs gstreamer: Use glib::List in various places for reducing allocations when working with factory lists 2021-11-20 14:44:49 +02:00
device_provider_factory.rs gstreamer: Add getters for ElementFactory/DeviceProviderFactory metadata 2021-11-28 21:00:05 +01:00
element.rs gst/lib: cleanup format re-exports 2022-10-10 15:10:10 +02:00
element_factory.rs gstreamer: Add getters for ElementFactory/DeviceProviderFactory metadata 2021-11-28 21:00:05 +01:00
element_factory_type.rs gstreamer: Use glib::List in various places for reducing allocations when working with factory lists 2021-11-20 14:44:49 +02:00
enums.rs Update minimum supported version to 1.14 2022-04-07 12:45:47 +03:00
error.rs gstreamer: Implement new logging variants that work ObjectSubclass values 2022-10-10 15:01:07 +03:00
event.rs gst/lib: cleanup format re-exports 2022-10-10 15:10:10 +02:00
flag_serde.rs Add De/Serialization for most bitflag types 2022-05-06 09:05:52 +00:00
functions.rs gstreamer: Add extension trait to mark API as plugins API 2022-08-24 10:38:06 -04:00
ghost_pad.rs gstreamer: Add many new doc aliases for C function 2021-12-12 17:52:32 +02:00
gobject.rs Update for glib::Object::new() API changes 2022-10-07 21:45:01 +03:00
gtype.rs gstreamer: Add extension trait to mark API as plugins API 2022-08-24 10:38:06 -04:00
iterator.rs Implement more iterator functions / traits in custom iterators for efficiency reasons 2022-05-22 12:42:42 +03:00
lib.rs gst/lib: cleanup format re-exports 2022-10-10 15:10:10 +02:00
log.rs Change *Impl trait methods to only take &self and not Self::Type in addition 2022-10-10 15:01:07 +03:00
memory.rs as_ptr() and as_mut_ptr() accessors are safe 2022-08-12 08:29:49 +02:00
message.rs gst/lib: cleanup format re-exports 2022-10-10 15:10:10 +02:00
meta.rs gstreamer: meta: Allow to register custom meta without transform function 2022-09-29 14:05:35 +02:00
miniobject.rs miniobject: implement ptr_eq() on ref type 2022-08-12 11:15:08 +02:00
object.rs gstreamer: Add many new doc aliases for C function 2021-12-12 17:52:32 +02:00
pad.rs gst/lib: cleanup format re-exports 2022-10-10 15:10:10 +02:00
pad_template.rs gstreamer: Add #[must_use] annotation to PadTemplateBuilder 2022-05-08 11:41:54 +03:00
param_spec.rs Update for additional translation trait impls in gtk-rs-core 2022-10-08 15:35:37 +03:00
parse_context.rs Generate missing doc aliases for newtypes 2021-06-01 15:15:59 +02:00
pipeline.rs manual code: fix-getters-def doc aliases 2021-05-03 20:46:57 +02:00
plugin.rs Regenerate with latest gir / gir-files / gst-gir-files 2022-08-14 14:02:50 +03:00
plugin_feature.rs Add missing doc aliases to manual code 2021-05-19 22:36:18 +02:00
promise.rs gstreamer: manually implement Debug on PromiseReply 2022-08-29 08:59:21 +00:00
proxy_pad.rs Use IntoGlibPtr trait instead of implementing into_ptr 2022-05-07 13:38:11 +02:00
query.rs gst/lib: cleanup format re-exports 2022-10-10 15:10:10 +02:00
registry.rs gstreamer: Use glib::List in various places for reducing allocations when working with factory lists 2021-11-20 14:44:49 +02:00
sample.rs gst/lib: cleanup format re-exports 2022-10-10 15:10:10 +02:00
sample_serde.rs gstreamer: Fix serde serialization tests 2022-06-24 11:13:06 +03:00
segment.rs gst/lib: cleanup format re-exports 2022-10-10 15:10:10 +02:00
segment_serde.rs gst/lib: cleanup format re-exports 2022-10-10 15:10:10 +02:00
serde_macros.rs Add De/Serialization for most bitflag types 2022-05-06 09:05:52 +00:00
static_caps.rs Generate missing doc aliases for newtypes 2021-06-01 15:15:59 +02:00
static_pad_template.rs Generate missing doc aliases for newtypes 2021-06-01 15:15:59 +02:00
stream.rs Update minimum supported version to 1.14 2022-04-07 12:45:47 +03:00
stream_collection.rs Implement more iterator functions / traits in custom iterators for efficiency reasons 2022-05-22 12:42:42 +03:00
structure.rs gstreamer: structure: improve Debug implementation 2022-08-25 10:54:16 +02:00
structure_serde.rs gstreamer: Fix serde serialization tests 2022-06-24 11:13:06 +03:00
tag_setter.rs Add missing doc aliases to manual code 2021-05-19 22:36:18 +02:00
tags.rs gstreamer: taglist: improve Debug implementation 2022-08-25 10:54:16 +02:00
tags_serde.rs gstreamer: Fix serde serialization tests 2022-06-24 11:13:06 +03:00
task.rs Fix/silence a couple new clippy warnings 2022-06-30 13:08:33 +00:00
task_pool.rs gstreamer: Add TaskPool bindings and subclassing 2022-03-30 23:01:21 +02:00
toc.rs Use IntoGlibPtr trait instead of implementing into_ptr 2022-05-07 13:38:11 +02:00
toc_serde.rs gstreamer: Update ron dev-dependency to 0.7 2021-10-23 10:40:24 +03:00
tracer.rs Bindings to GstTracer and GstTracerFactory 2021-08-16 14:38:22 +03:00
tracer_factory.rs Update minimum supported version to 1.14 2022-04-07 12:45:47 +03:00
typefind.rs gstreamer: Use type parameters instead of trait objects for TypeFindFactory::call_function() 2022-09-16 11:26:24 +03:00
typefind_factory.rs gstreamer: Use glib::List in various places for reducing allocations when working with factory lists 2021-11-20 14:44:49 +02:00
utils.rs Rework ClockTime & FormattedValues 2021-06-04 22:09:38 +02:00
value.rs Rename feature 'ser_de' as 'serde' 2022-09-12 19:36:30 +02:00
value_serde.rs gstreamer/value_serde: fix nested structures 2021-12-01 17:41:48 +00:00