pub struct PageLabelRange { /* private fields */ }Expand description
One labelling rule, and the page it starts at.
use pdfrum_edit::{PageLabelRange, PageLabelStyle};
// Front matter in lower-case roman, then the body restarting at 1.
let front = PageLabelRange::new(0u32, PageLabelStyle::LowerRoman);
let body = PageLabelRange::new(4u32, PageLabelStyle::Decimal).prefix("Part 1-");
assert_eq!(front.start().get(), 0);
assert_eq!(body.start().get(), 4);Implementations§
Trait Implementations§
Source§impl Clone for PageLabelRange
impl Clone for PageLabelRange
Source§fn clone(&self) -> PageLabelRange
fn clone(&self) -> PageLabelRange
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 moreSource§impl Debug for PageLabelRange
impl Debug for PageLabelRange
impl Eq for PageLabelRange
Source§impl PartialEq for PageLabelRange
impl PartialEq for PageLabelRange
impl StructuralPartialEq for PageLabelRange
Auto Trait Implementations§
impl Freeze for PageLabelRange
impl RefUnwindSafe for PageLabelRange
impl Send for PageLabelRange
impl Sync for PageLabelRange
impl Unpin for PageLabelRange
impl UnsafeUnpin for PageLabelRange
impl UnwindSafe for PageLabelRange
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