pub struct File<B, OC, SC, L> {
pub trailer: Trailer,
/* private fields */
}Fields§
§trailer: TrailerImplementations§
Source§impl<B, OC, SC, L> File<B, OC, SC, L>
impl<B, OC, SC, L> File<B, OC, SC, L>
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>
impl<B, OC, SC, L> Updater for File<B, OC, SC, L>
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> Freeze for File<B, OC, SC, L>
impl<B, OC, SC, L> RefUnwindSafe for File<B, OC, SC, L>
impl<B, OC, SC, L> Send for File<B, OC, SC, L>
impl<B, OC, SC, L> Sync for File<B, OC, SC, L>
impl<B, OC, SC, L> Unpin for File<B, OC, SC, L>
impl<B, OC, SC, L> UnwindSafe for File<B, OC, SC, L>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more