We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a23d7fd + a8100ed commit 15a9b07Copy full SHA for 15a9b07
1 file changed
src/cxx_vector.rs
@@ -2,7 +2,7 @@ use crate::cxx_string::CxxString;
2
use crate::extern_type::ExternType;
3
use crate::kind::Trivial;
4
use core::ffi::c_void;
5
-use core::fmt::{self, Display};
+use core::fmt::{self, Debug, Display};
6
use core::marker::{PhantomData, PhantomPinned};
7
use core::mem;
8
use core::ptr;
@@ -124,6 +124,15 @@ where
124
}
125
126
127
+impl<T> Debug for CxxVector<T>
128
+where
129
+ T: VectorElement + Debug,
130
+{
131
+ fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
132
+ formatter.debug_list().entries(self).finish()
133
+ }
134
+}
135
+
136
pub struct TypeName<T> {
137
element: PhantomData<T>,
138
0 commit comments