1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
|
From: Arnaud Ferraris <aferraris@debian.org>
Date: Fri, 2 May 2025 11:31:41 +0200
Subject: src: glyph_string: add `Uninitialized` implementation
Forwarded: not-needed
---
src/glyph_string.rs | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/glyph_string.rs b/src/glyph_string.rs
index 906867e..a10a2a9 100644
--- a/src/glyph_string.rs
+++ b/src/glyph_string.rs
@@ -61,6 +61,14 @@ impl GlyphString {
}
}
+#[doc(hidden)]
+impl Uninitialized for GlyphString {
+ #[inline]
+ unsafe fn uninitialized() -> Self {
+ std::mem::zeroed()
+ }
+}
+
#[cfg(test)]
mod tests {
#[test]
|