pub struct PageLabel {
pub first_page: usize,
pub style: Option<LabelStyle>,
pub prefix: Option<String>,
pub start_at: u32,
}Expand description
One labelling range: every page from first_page up to the next
range’s first page shows prefix followed by the numeral of
start_at + (page - first_page) in style; without a style the label is
the prefix alone.
Covers ISO 32000-1 §12.4.2.
Fields§
§first_page: usize0-based page index where this range begins.
style: Option<LabelStyle>Numbering style, the /S entry; None shows only prefix.
prefix: Option<String>Text before every number in the range, the /P entry.
start_at: u32The number shown on first_page, the /St entry; 1 by default.
Implementations§
Trait Implementations§
impl StructuralPartialEq for PageLabel
Auto Trait Implementations§
impl Forget for PageLabel
impl Freeze for PageLabel
impl Move 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