pub struct OutlineNode {
pub title: String,
pub destination: Option<OutlineDestination>,
pub raw_dest: Option<String>,
pub count: Option<i64>,
pub children: Vec<OutlineNode>,
}Expand description
One node in the parsed outline tree.
Fields§
§title: String/Title text (decoded — LiteralString PDFDocEncoding or
HexString UTF-16BE with BOM).
destination: Option<OutlineDestination>/Dest parsed back to a structured destination, when the dest
is an explicit array per Table 151. Named destinations (where
/Dest is a Name or string) and action-driven destinations
(where /A carries a /GoTo action) lower to None here;
the raw text is retained in Self::raw_dest.
raw_dest: Option<String>Verbatim text of the /Dest entry, in case the structured
parse above fell back to None. Useful for callers that want
to surface named destinations or unsupported variants
untouched.
count: Option<i64>/Count value when present. Per Table 153, a positive value
means “open with N visible descendants”; a negative value
means “closed with |N| hidden descendants”; absent means “no
descendants”.
children: Vec<OutlineNode>Resolved children — the /First / /Next chain expanded back
into a parent-owned vec.
Implementations§
Source§impl OutlineNode
impl OutlineNode
Trait Implementations§
Source§impl Clone for OutlineNode
impl Clone for OutlineNode
Source§fn clone(&self) -> OutlineNode
fn clone(&self) -> OutlineNode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more