pub struct WindowedFile { /* private fields */ }Expand description
A seekable file read through one reusable, budget-charged window.
Implementations§
Source§impl WindowedFile
impl WindowedFile
Sourcepub fn open(
path: impl AsRef<Path>,
max_window_bytes: usize,
context: &ExecutionContext,
) -> Result<Self, Diagnostic>
pub fn open( path: impl AsRef<Path>, max_window_bytes: usize, context: &ExecutionContext, ) -> Result<Self, Diagnostic>
Opens a file and reserves the complete reusable window up front.
§Errors
Returns MOLFRAME-E1902 if the window does not fit the shared execution
budget, or MOLFRAME-E1901 if the file or buffer cannot be opened.
Trait Implementations§
Source§impl Debug for WindowedFile
impl Debug for WindowedFile
Source§impl SourceBytes for WindowedFile
impl SourceBytes for WindowedFile
Auto Trait Implementations§
impl Freeze for WindowedFile
impl RefUnwindSafe for WindowedFile
impl Send for WindowedFile
impl Sync for WindowedFile
impl Unpin for WindowedFile
impl UnsafeUnpin for WindowedFile
impl UnwindSafe for WindowedFile
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