We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
impl thin::SizeOf{,Debug} for allocator::adapt::AllocZst
1 parent aa98c2a commit 259ddecCopy full SHA for 259ddec
src/allocator/adapt/alloc_zst.rs
@@ -86,6 +86,18 @@ unsafe impl<A: thin::Realloc> thin::Realloc for AllocZst<A> {
86
}
87
88
89
+unsafe impl<A: thin::SizeOf> thin::SizeOf for AllocZst<A> {
90
+ unsafe fn size_of(&self, ptr: NonNull<MaybeUninit<u8>>) -> usize {
91
+ unsafe { self.0.size_of(ptr) }
92
+ }
93
+}
94
+
95
+unsafe impl<A: thin::SizeOfDebug> thin::SizeOfDebug for AllocZst<A> {
96
+ unsafe fn size_of_debug(&self, ptr: NonNull<MaybeUninit<u8>>) -> Option<usize> {
97
+ unsafe { self.0.size_of_debug(ptr) }
98
99
100
101
102
103
// fat::*
0 commit comments