@@ -16,6 +16,7 @@ use std::{
1616} ;
1717
1818impl_reflect_value ! ( bool ( Hash , PartialEq , Serialize , Deserialize ) ) ;
19+ impl_reflect_value ! ( char ( Hash , PartialEq , Serialize , Deserialize ) ) ;
1920impl_reflect_value ! ( u8 ( Hash , PartialEq , Serialize , Deserialize ) ) ;
2021impl_reflect_value ! ( u16 ( Hash , PartialEq , Serialize , Deserialize ) ) ;
2122impl_reflect_value ! ( u32 ( Hash , PartialEq , Serialize , Deserialize ) ) ;
@@ -37,6 +38,7 @@ impl_reflect_value!(Range<T: Serialize + Clone + for<'de> Deserialize<'de> + Sen
3738impl_reflect_value ! ( Duration ( Hash , PartialEq , Serialize , Deserialize ) ) ;
3839
3940impl_from_reflect_value ! ( bool ) ;
41+ impl_from_reflect_value ! ( char ) ;
4042impl_from_reflect_value ! ( u8 ) ;
4143impl_from_reflect_value ! ( u16 ) ;
4244impl_from_reflect_value ! ( u32 ) ;
@@ -552,6 +554,15 @@ mod tests {
552554 assert ! ( std:: time:: Duration :: ZERO . serializable( ) . is_some( ) ) ;
553555 }
554556
557+ #[ test]
558+ fn should_partial_eq_char ( ) {
559+ let a: & dyn Reflect = & 'x' ;
560+ let b: & dyn Reflect = & 'x' ;
561+ let c: & dyn Reflect = & 'o' ;
562+ assert ! ( a. reflect_partial_eq( b) . unwrap_or_default( ) ) ;
563+ assert ! ( !a. reflect_partial_eq( c) . unwrap_or_default( ) ) ;
564+ }
565+
555566 #[ test]
556567 fn should_partial_eq_i32 ( ) {
557568 let a: & dyn Reflect = & 123_i32 ;
0 commit comments