From 2a30a0456c2d1898cc65908bd43a7f7b15abc7db Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 30 Mar 2025 16:46:36 +0200 Subject: feat: make structs derive Debug --- src/lib.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') diff --git a/src/lib.rs b/src/lib.rs index 4da3f8a..3bbeb19 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -14,6 +14,7 @@ const FIELD_COUNT_SIZE: usize = size_of::(); const FIELD_COUNT_OFFSET: usize = 0; const FIELD_METADATA_ARRAY_OFFSET: usize = FIELD_COUNT_SIZE; +#[derive(Debug)] pub struct OwnedAnyPtr { ptr: *mut dyn Any, @@ -717,6 +718,7 @@ impl Drop for MultiVec } } +#[derive(Debug)] pub struct FieldSlice<'mv> { bytes: &'mv [MaybeUninit], @@ -744,6 +746,7 @@ impl FieldSlice<'_> } } +#[derive(Debug)] pub struct FieldSliceIter<'mv> { bytes: &'mv [MaybeUninit], @@ -777,6 +780,7 @@ impl<'mv> Iterator for FieldSliceIter<'mv> } } +#[derive(Debug)] pub struct Field<'bytes, 'mv> { bytes: Either<&'bytes [MaybeUninit], AnonUnique>, @@ -810,6 +814,7 @@ impl<'bytes, 'mv> Field<'bytes, 'mv> // } } +#[derive(Debug)] pub struct FieldSliceMut<'mv> { bytes: &'mv mut [MaybeUninit], @@ -877,6 +882,7 @@ impl<'mv> FieldSliceMut<'mv> } } +#[derive(Debug)] pub struct FieldSliceIterMut<'mv> { bytes: &'mv mut [MaybeUninit], @@ -917,6 +923,7 @@ impl<'mv> Iterator for FieldSliceIterMut<'mv> } } +#[derive(Debug)] pub struct FieldMut<'mv> { bytes: &'mv mut [MaybeUninit], -- cgit v1.2.3-18-g5258