pub struct PageLabel {
pub first_page: usize,
pub style: Option<LabelStyle>,
pub prefix: Option<String>,
pub start_at: u32,
}Expand description
One page-numbering range, taking effect from first_page (0-based)
until the next range’s first_page or the document’s end (ISO 32000
§12.4.2). A document’s page_labels must include a range with
first_page == 0 whenever it is non-empty.
Fields§
§first_page: usize0-based page index where this range begins.
style: Option<LabelStyle>Numbering style, written as /S; None omits it, showing only
prefix for every page in the range.
prefix: Option<String>Text prepended to every number in the range, written as /P.
start_at: u32The number shown on first_page, written as /St only when not
1. Conventionally 1.
Trait Implementations§
impl StructuralPartialEq for PageLabel
Auto Trait Implementations§
impl Freeze for PageLabel
impl RefUnwindSafe for PageLabel
impl Send for PageLabel
impl Sync for PageLabel
impl Unpin for PageLabel
impl UnsafeUnpin for PageLabel
impl UnwindSafe for PageLabel
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