@@ -671,6 +671,18 @@ impl PartialEq for dirent {
671671}
672672#[ cfg( feature = "extra_traits" ) ]
673673impl Eq for dirent { }
674+ #[ cfg( feature = "extra_traits" ) ]
675+ impl std:: fmt:: Debug for dirent {
676+ fn fmt ( & self , f : & mut std:: fmt:: Formatter ) -> std:: fmt:: Result {
677+ f. debug_struct ( "dirent" )
678+ . field ( "d_ino" , & self . d_ino )
679+ . field ( "d_off" , & self . d_off )
680+ . field ( "d_reclen" , & self . d_reclen )
681+ . field ( "d_type" , & self . d_type )
682+ // FIXME: .field("d_name", &self.d_name)
683+ . finish ( )
684+ }
685+ }
674686
675687#[ cfg( feature = "extra_traits" ) ]
676688impl PartialEq for dirent64 {
@@ -684,6 +696,18 @@ impl PartialEq for dirent64 {
684696}
685697#[ cfg( feature = "extra_traits" ) ]
686698impl Eq for dirent64 { }
699+ #[ cfg( feature = "extra_traits" ) ]
700+ impl std:: fmt:: Debug for dirent64 {
701+ fn fmt ( & self , f : & mut std:: fmt:: Formatter ) -> std:: fmt:: Result {
702+ f. debug_struct ( "dirent64" )
703+ . field ( "d_ino" , & self . d_ino )
704+ . field ( "d_off" , & self . d_off )
705+ . field ( "d_reclen" , & self . d_reclen )
706+ . field ( "d_type" , & self . d_type )
707+ // FIXME: .field("d_name", &self.d_name)
708+ . finish ( )
709+ }
710+ }
687711
688712#[ cfg( feature = "extra_traits" ) ]
689713impl PartialEq for pthread_cond_t {
@@ -693,6 +717,14 @@ impl PartialEq for pthread_cond_t {
693717}
694718#[ cfg( feature = "extra_traits" ) ]
695719impl Eq for pthread_cond_t { }
720+ #[ cfg( feature = "extra_traits" ) ]
721+ impl std:: fmt:: Debug for pthread_cond_t {
722+ fn fmt ( & self , f : & mut std:: fmt:: Formatter ) -> std:: fmt:: Result {
723+ f. debug_struct ( "pthread_cond_t" )
724+ // FIXME: .field("size", &self.size)
725+ . finish ( )
726+ }
727+ }
696728
697729#[ cfg( feature = "extra_traits" ) ]
698730impl PartialEq for pthread_mutex_t {
@@ -702,6 +734,14 @@ impl PartialEq for pthread_mutex_t {
702734}
703735#[ cfg( feature = "extra_traits" ) ]
704736impl Eq for pthread_mutex_t { }
737+ #[ cfg( feature = "extra_traits" ) ]
738+ impl std:: fmt:: Debug for pthread_mutex_t {
739+ fn fmt ( & self , f : & mut std:: fmt:: Formatter ) -> std:: fmt:: Result {
740+ f. debug_struct ( "pthread_mutex_t" )
741+ // FIXME: .field("size", &self.size)
742+ . finish ( )
743+ }
744+ }
705745
706746#[ cfg( feature = "extra_traits" ) ]
707747impl PartialEq for pthread_rwlock_t {
@@ -711,6 +751,14 @@ impl PartialEq for pthread_rwlock_t {
711751}
712752#[ cfg( feature = "extra_traits" ) ]
713753impl Eq for pthread_rwlock_t { }
754+ #[ cfg( feature = "extra_traits" ) ]
755+ impl std:: fmt:: Debug for pthread_rwlock_t {
756+ fn fmt ( & self , f : & mut std:: fmt:: Formatter ) -> std:: fmt:: Result {
757+ f. debug_struct ( "pthread_rwlock_t" )
758+ // FIXME: .field("size", &self.size)
759+ . finish ( )
760+ }
761+ }
714762
715763pub const ABDAY_1 : :: nl_item = 0x20000 ;
716764pub const ABDAY_2 : :: nl_item = 0x20001 ;
0 commit comments