bevy/crates/bevy_reflect/src
Jonathan Cornaz d07c8a8fa7 Implement ReflectValue serialization for Duration (#3318)
# Objective

Resolves #3277 

Currenty if we try to serialize a scene that contains a `Duration` (which is very common, since `Timer` contains one), we get an error saying:

> Type 'core::time::Duration' does not support ReflectValue serialization


## Solution

Let `Duration` implement `SerializeValue`.



Co-authored-by: Jonathan Cornaz <jcornaz@users.noreply.github.com>
2021-12-29 21:04:26 +00:00
..
impls Implement ReflectValue serialization for Duration (#3318) 2021-12-29 21:04:26 +00:00
serde Avoid some format! into immediate format! (#2913) 2021-10-06 18:34:33 +00:00
lib.rs Add FromReflect trait to convert dynamic types to concrete types (#1395) 2021-12-26 18:49:01 +00:00
list.rs Fix doc_markdown lints in bevy_reflect (#3478) 2021-12-29 17:38:12 +00:00
map.rs Fix doc_markdown lints in bevy_reflect (#3478) 2021-12-29 17:38:12 +00:00
path.rs Add FromReflect trait to convert dynamic types to concrete types (#1395) 2021-12-26 18:49:01 +00:00
reflect.rs Add FromReflect trait to convert dynamic types to concrete types (#1395) 2021-12-26 18:49:01 +00:00
struct_trait.rs Override size_hint for all Iterators and add ExactSizeIterator where applicable (#1734) 2021-04-13 01:28:14 +00:00
tuple_struct.rs Override size_hint for all Iterators and add ExactSizeIterator where applicable (#1734) 2021-04-13 01:28:14 +00:00
tuple.rs Add FromReflect trait to convert dynamic types to concrete types (#1395) 2021-12-26 18:49:01 +00:00
type_registry.rs Fix doc_markdown lints in bevy_reflect (#3478) 2021-12-29 17:38:12 +00:00
type_uuid.rs revert supporting generics for deriving TypeUuid (#2204) 2021-05-17 20:28:50 +00:00