#[non_exhaustive]pub struct LoadRecovery {
pub xref_rebuilt: bool,
pub page_tree_rebuilt: bool,
}Expand description
Structural recovery that occurred while loading a Pdf.
Recovery is always attempted automatically; these flags let a caller learn that it happened, so a repaired document is distinguishable from a clean one. They never change the (always-on) recovery behaviour.
Marked #[non_exhaustive] so future recovery categories (e.g. an
object-stream rebuild flag) can be added without a breaking change.
Downstream crates read fields by name; they must not construct or
exhaustively destructure this struct.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.xref_rebuilt: boolThe cross-reference table was invalid and rebuilt by scanning the file for objects. Object recovery may be incomplete.
page_tree_rebuilt: boolThe page tree was invalid and pages were recovered by a brute-force scan. Page order may differ from the source.
Trait Implementations§
Source§impl Clone for LoadRecovery
impl Clone for LoadRecovery
Source§fn clone(&self) -> LoadRecovery
fn clone(&self) -> LoadRecovery
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 moreimpl Copy for LoadRecovery
Source§impl Debug for LoadRecovery
impl Debug for LoadRecovery
Source§impl Default for LoadRecovery
impl Default for LoadRecovery
Source§fn default() -> LoadRecovery
fn default() -> LoadRecovery
Returns the “default value” for a type. Read more
impl Eq for LoadRecovery
Source§impl PartialEq for LoadRecovery
impl PartialEq for LoadRecovery
Source§fn eq(&self, other: &LoadRecovery) -> bool
fn eq(&self, other: &LoadRecovery) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LoadRecovery
Auto Trait Implementations§
impl Freeze for LoadRecovery
impl RefUnwindSafe for LoadRecovery
impl Send for LoadRecovery
impl Sync for LoadRecovery
impl Unpin for LoadRecovery
impl UnsafeUnpin for LoadRecovery
impl UnwindSafe for LoadRecovery
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