From 3b8d5967a800876c544f156cf431f9a3585a5a24 Mon Sep 17 00:00:00 2001 From: kkent030315 Date: Thu, 31 Oct 2024 21:56:45 +0900 Subject: [PATCH] Add doc comment --- src/pe/resource.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pe/resource.rs b/src/pe/resource.rs index ece3cba1..d1d5ffbc 100644 --- a/src/pe/resource.rs +++ b/src/pe/resource.rs @@ -597,8 +597,10 @@ pub const VFT2_FONT_VECTOR: u32 = 0x00000002; /// [`VsFixedFileInfo::file_subtype`]: Indicates a TrueType font subtype. pub const VFT2_FONT_TRUETYPE: u32 = 0x00000003; +/// Iterator over [`ResourceString`] #[derive(Debug, Copy, Clone)] pub struct ResourceStringIterator<'a> { + /// The raw data must be scoped to the [`ResourceDataEntry`] pub data: &'a [u8], } @@ -628,6 +630,7 @@ impl<'a> Iterator for ResourceStringIterator<'a> { } } +/// Represents a resource string entry. #[derive(Copy, Clone)] pub struct ResourceString<'a> { /// The length, in bytes, of this String structure.