pub struct NoResolve;Expand description
A resolver that knows nothing, for reading dictionaries whose references are irrelevant (or before a store exists).
Every reference is unresolvable, which is exactly how a damaged file’s dangling references behave, so accessors keep working and return their fallbacks.
use pdfrum_object::{Dict, NoResolve, Object, names};
let dict = Dict::from_pairs([(names::LENGTH.clone(), Object::Int(7))]);
// Direct values still read fine without a store.
assert_eq!(dict.int(names::LENGTH, &NoResolve), Some(7));Trait Implementations§
impl Copy for NoResolve
impl Eq for NoResolve
impl StructuralPartialEq for NoResolve
Auto Trait Implementations§
impl Freeze for NoResolve
impl RefUnwindSafe for NoResolve
impl Send for NoResolve
impl Sync for NoResolve
impl Unpin for NoResolve
impl UnsafeUnpin for NoResolve
impl UnwindSafe for NoResolve
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