pub struct Pages {
pub first_page: u32,
pub last_page: u32,
}Expand description
The pages of a PDF to use, counted from 1 with both ends included.
The two ends are one value here because the engine refuses one without the other. A half-written range cannot be expressed, so it cannot be sent.
What this type does not decide is still the engine’s: a first below 1, a
last before first, or a range that runs past the end of the document is
refused there, before the file is read or anything is spent.
Fields§
§first_page: u32The first page to use, counted from 1.
last_page: u32The last page to use, included.
Implementations§
Trait Implementations§
impl Copy for Pages
Source§impl<'de> Deserialize<'de> for Pages
impl<'de> Deserialize<'de> for Pages
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Pages
impl StructuralPartialEq for Pages
Auto Trait Implementations§
impl Freeze for Pages
impl RefUnwindSafe for Pages
impl Send for Pages
impl Sync for Pages
impl Unpin for Pages
impl UnsafeUnpin for Pages
impl UnwindSafe for Pages
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