pub struct ResolvedTab<'a> {
pub tab_id: Option<&'a str>,
pub title: Option<&'a str>,
pub nesting_level: i64,
pub body: Option<&'a Body>,
pub named_ranges: &'a HashMap<String, NamedRanges>,
/* private fields */
}Expand description
One tab’s content, with the legacy single-body response normalised into
the same shape so callers never branch on which form arrived.
Header/footer/footnote content is resolved lazily, via
Self::headers/Self::footers/Self::footnotes, rather than
eagerly at construction: docs info’s outline and the write-preview
corpus builders only ever read Self::body, and paying the sort for
a footnote-heavy document they discard immediately would be pure waste.
Only docs read calls the accessors.
Fields§
§tab_id: Option<&'a str>The tab’s id, or None for a legacy single-body document.
title: Option<&'a str>The tab’s title, or None for a legacy single-body document.
nesting_level: i64Depth in the tab tree; 0 for a top-level tab.
body: Option<&'a Body>The tab’s body, when it has one.
named_ranges: &'a HashMap<String, NamedRanges>Named ranges belonging to this tab, including legacy responses.
Implementations§
Source§impl<'a> ResolvedTab<'a>
impl<'a> ResolvedTab<'a>
Sourcepub fn headers(&self) -> Vec<ResolvedSegment<'a>>
pub fn headers(&self) -> Vec<ResolvedSegment<'a>>
The tab’s page headers, resolved and sorted by segment_id — map
iteration order is not deterministic.
The tab’s page footers, likewise resolved and sorted.
Sourcepub fn footnotes(&self) -> Vec<ResolvedSegment<'a>>
pub fn footnotes(&self) -> Vec<ResolvedSegment<'a>>
The tab’s footnotes, likewise resolved and sorted.
Trait Implementations§
Source§impl<'a> Clone for ResolvedTab<'a>
impl<'a> Clone for ResolvedTab<'a>
impl<'a> Copy for ResolvedTab<'a>
Source§impl<'a> Debug for ResolvedTab<'a>
impl<'a> Debug for ResolvedTab<'a>
impl<'a> Eq for ResolvedTab<'a>
Source§impl<'a> PartialEq for ResolvedTab<'a>
impl<'a> PartialEq for ResolvedTab<'a>
impl<'a> StructuralPartialEq for ResolvedTab<'a>
Auto Trait Implementations§
impl<'a> Freeze for ResolvedTab<'a>
impl<'a> RefUnwindSafe for ResolvedTab<'a>
impl<'a> Send for ResolvedTab<'a>
impl<'a> Sync for ResolvedTab<'a>
impl<'a> Unpin for ResolvedTab<'a>
impl<'a> UnsafeUnpin for ResolvedTab<'a>
impl<'a> UnwindSafe for ResolvedTab<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more