pub struct PageLabels { /* private fields */ }Expand description
The document’s page labels, parsed from /PageLabels. Built only when the
document declares at least one well-formed labeling range.
Implementations§
Source§impl PageLabels
impl PageLabels
Sourcepub fn label(&self, page_index: usize) -> Option<String>
pub fn label(&self, page_index: usize) -> Option<String>
The printed label for a 0-based page index, or None when the page falls
before the first labeling range (so no range covers it — the document
gave it no label). A range with neither a numeric style nor a prefix
yields Some("") — an explicit, deliberately-blank label.
Trait Implementations§
Source§impl Clone for PageLabels
impl Clone for PageLabels
Source§fn clone(&self) -> PageLabels
fn clone(&self) -> PageLabels
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 PageLabels
impl RefUnwindSafe for PageLabels
impl Send for PageLabels
impl Sync for PageLabels
impl Unpin for PageLabels
impl UnsafeUnpin for PageLabels
impl UnwindSafe for PageLabels
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