pub struct ObjectStore { /* private fields */ }Expand description
Everything needed to turn a reference into an object.
Sync on purpose: rendering pages in parallel means fetching objects in
parallel, so the caches are behind locks and the parsed objects are shared
immutably.
Implementations§
Source§impl ObjectStore
impl ObjectStore
Sourcepub fn get(&self, num: u32) -> Result<Arc<Object>, Error>
pub fn get(&self, num: u32) -> Result<Arc<Object>, Error>
Fetch an object, parsing it if this is the first request.
§Errors
Error::Unresolved when the table has nothing usable for this
number, and Error::Cycle when the fetch re-entered one already
running.
Trait Implementations§
Source§impl Debug for ObjectStore
impl Debug for ObjectStore
Auto Trait Implementations§
impl !Freeze for ObjectStore
impl RefUnwindSafe for ObjectStore
impl Send for ObjectStore
impl Sync for ObjectStore
impl Unpin for ObjectStore
impl UnsafeUnpin for ObjectStore
impl UnwindSafe for ObjectStore
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