summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2025-03-30 16:46:36 +0200
committerHampusM <hampus@hampusmat.com>2025-03-30 16:46:36 +0200
commit2a30a0456c2d1898cc65908bd43a7f7b15abc7db (patch)
tree143244ead2cae36e11f9f279e5c5ce06056b1a8d
parentc689f877cc81df265fb40336da99c0bef6bb2b39 (diff)
feat: make structs derive Debug
-rw-r--r--src/lib.rs7
1 files changed, 7 insertions, 0 deletions
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::<usize>();
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<u8>],
@@ -744,6 +746,7 @@ impl FieldSlice<'_>
}
}
+#[derive(Debug)]
pub struct FieldSliceIter<'mv>
{
bytes: &'mv [MaybeUninit<u8>],
@@ -777,6 +780,7 @@ impl<'mv> Iterator for FieldSliceIter<'mv>
}
}
+#[derive(Debug)]
pub struct Field<'bytes, 'mv>
{
bytes: Either<&'bytes [MaybeUninit<u8>], AnonUnique>,
@@ -810,6 +814,7 @@ impl<'bytes, 'mv> Field<'bytes, 'mv>
// }
}
+#[derive(Debug)]
pub struct FieldSliceMut<'mv>
{
bytes: &'mv mut [MaybeUninit<u8>],
@@ -877,6 +882,7 @@ impl<'mv> FieldSliceMut<'mv>
}
}
+#[derive(Debug)]
pub struct FieldSliceIterMut<'mv>
{
bytes: &'mv mut [MaybeUninit<u8>],
@@ -917,6 +923,7 @@ impl<'mv> Iterator for FieldSliceIterMut<'mv>
}
}
+#[derive(Debug)]
pub struct FieldMut<'mv>
{
bytes: &'mv mut [MaybeUninit<u8>],