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§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
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§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
Compare self to
key and return true if they are equal.Source§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
Source§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.