pub struct ReadContext {
pub page_range: Option<(u32, u32)>,
pub encoding: Option<String>,
pub metadata_only: bool,
}Expand description
Options a reader needs to know about. Deliberately excludes width and color: those belong to the layout and the backend, and leaking them here would re-couple the stages.
Fields§
§page_range: Option<(u32, u32)>Page or section range requested with --page.
encoding: Option<String>Encoding forced with --encoding.
metadata_only: boolMetadata only: lets the reader skip the body.
Trait Implementations§
Source§impl Clone for ReadContext
impl Clone for ReadContext
Source§fn clone(&self) -> ReadContext
fn clone(&self) -> ReadContext
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 ReadContext
impl Debug for ReadContext
Source§impl Default for ReadContext
impl Default for ReadContext
Source§fn default() -> ReadContext
fn default() -> ReadContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ReadContext
impl RefUnwindSafe for ReadContext
impl Send for ReadContext
impl Sync for ReadContext
impl Unpin for ReadContext
impl UnsafeUnpin for ReadContext
impl UnwindSafe for ReadContext
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