Skip to main content

LengthResolver

Type Alias LengthResolver 

Source
pub type LengthResolver<'r> = &'r mut dyn FnMut(ObjId) -> Option<i64>;
Expand description

Resolver for indirect /Length values (§7.3.10 EXAMPLE 3 pattern).

Given the referenced id, return the integer value of that object, or None if it cannot be resolved / is not an integer. The document layer implements this against the xref table; tests implement it with a closure over a map. Kept as a trait alias-like type for signature clarity.