pub struct File<B, OC, SC, L> {
pub trailer: Trailer,
/* private fields */
}
Fields§
§trailer: Trailer
Implementations§
source§impl<OC, SC, L> File<Vec<u8>, OC, SC, L>where
OC: Cache<Result<AnySync, Arc<PdfError>>>,
SC: Cache<Result<Arc<[u8]>, Arc<PdfError>>>,
L: Log,
impl<OC, SC, L> File<Vec<u8>, OC, SC, L>where OC: Cache<Result<AnySync, Arc<PdfError>>>, SC: Cache<Result<Arc<[u8]>, Arc<PdfError>>>, L: Log,
source§impl<B, OC, SC, L> File<B, OC, SC, L>where
B: Backend,
OC: Cache<Result<AnySync, Arc<PdfError>>>,
SC: Cache<Result<Arc<[u8]>, Arc<PdfError>>>,
L: Log,
impl<B, OC, SC, L> File<B, OC, SC, L>where B: Backend, OC: Cache<Result<AnySync, Arc<PdfError>>>, SC: Cache<Result<Arc<[u8]>, Arc<PdfError>>>, L: Log,
pub fn new(storage: Storage<B, OC, SC, L>, trailer: Trailer) -> Self
pub fn resolver(&self) -> impl Resolve + '_
pub fn get_root(&self) -> &Catalog
pub fn pages(&self) -> impl Iterator<Item = Result<PageRc>> + '_
pub fn num_pages(&self) -> u32
pub fn get_page(&self, n: u32) -> Result<PageRc>
pub fn update_catalog(&mut self, catalog: Catalog) -> Result<()>
pub fn set_options(&mut self, options: ParseOptions)
pub fn scan(&self) -> impl Iterator<Item = Result<ScanItem>> + '_
pub fn log(&self) -> &L
Trait Implementations§
source§impl<B, OC, SC, L> Updater for File<B, OC, SC, L>where
B: Backend,
OC: Cache<Result<AnySync, Arc<PdfError>>>,
SC: Cache<Result<Arc<[u8]>, Arc<PdfError>>>,
L: Log,
impl<B, OC, SC, L> Updater for File<B, OC, SC, L>where B: Backend, OC: Cache<Result<AnySync, Arc<PdfError>>>, SC: Cache<Result<Arc<[u8]>, Arc<PdfError>>>, L: Log,
fn create<T: ObjectWrite>(&mut self, obj: T) -> Result<RcRef<T>>
fn update<T: ObjectWrite>(&mut self, old: PlainRef, obj: T) -> Result<RcRef<T>>
fn promise<T: Object>(&mut self) -> PromisedRef<T>
fn fulfill<T: ObjectWrite>( &mut self, promise: PromisedRef<T>, obj: T ) -> Result<RcRef<T>>
Auto Trait Implementations§
impl<B, OC, SC, L> RefUnwindSafe for File<B, OC, SC, L>where B: RefUnwindSafe, L: RefUnwindSafe, OC: RefUnwindSafe, SC: RefUnwindSafe,
impl<B, OC, SC, L> Send for File<B, OC, SC, L>where B: Send, L: Send, OC: Send, SC: Send,
impl<B, OC, SC, L> Sync for File<B, OC, SC, L>where B: Sync, L: Sync, OC: Sync, SC: Sync,
impl<B, OC, SC, L> Unpin for File<B, OC, SC, L>where B: Unpin, L: Unpin, OC: Unpin, SC: Unpin,
impl<B, OC, SC, L> UnwindSafe for File<B, OC, SC, L>where B: UnwindSafe, L: UnwindSafe, OC: UnwindSafe, SC: UnwindSafe,
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