pub struct FieldAppearanceResult {
pub stream: AppearanceStream,
pub used_chars_by_font: HashMap<String, HashSet<char>>,
}Expand description
Outcome of an appearance-stream build — carries the stream plus the
per-font character obligations the generator recorded. Callers
(typically Document::fill_field) merge used_chars_by_font into
Document::used_characters_by_font so the writer’s font subsetter
covers every codepoint referenced from any /AP stream (preserves
the #204 invariant).
Named struct instead of a tuple so adding further outputs (e.g. computed bbox overrides, resource hints) doesn’t become a breaking API change. The map is empty for built-in fonts that don’t need subsetting.
Fields§
§stream: AppearanceStreamThe rendered appearance stream ready to attach to a widget.
used_chars_by_font: HashMap<String, HashSet<char>>Characters consumed from each custom Type0 font, keyed by font name. Empty when every emission went through the built-in path.
Trait Implementations§
Source§impl Clone for FieldAppearanceResult
impl Clone for FieldAppearanceResult
Source§fn clone(&self) -> FieldAppearanceResult
fn clone(&self) -> FieldAppearanceResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FieldAppearanceResult
impl RefUnwindSafe for FieldAppearanceResult
impl Send for FieldAppearanceResult
impl Sync for FieldAppearanceResult
impl Unpin for FieldAppearanceResult
impl UnsafeUnpin for FieldAppearanceResult
impl UnwindSafe for FieldAppearanceResult
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more