pub struct Location {
pub offset: Option<u64>,
pub object: Option<u32>,
pub stream_offset: Option<u64>,
pub page_index: Option<u64>,
pub id: Option<String>,
}Expand description
The location of a serialized diagnostic (ADR 0026 §1.1): each field names one kind of
position, and all of them are lamina-made values, never document text.
Added in 0.2.0.
Fields§
§offset: Option<u64>Byte offset in the input file.
object: Option<u32>Object number of the indirect object the problem is in or at.
stream_offset: Option<u64>Byte offset in the decoded data of object (only with object).
page_index: Option<u64>0-based page index.
id: Option<String>A LaminaPdfId string, e.g. p12.0.
Implementations§
Trait Implementations§
impl Eq for Location
impl StructuralPartialEq for Location
Auto Trait Implementations§
impl Forget for Location
impl Freeze for Location
impl Move for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnsafeUnpin for Location
impl UnwindSafe for Location
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