#[non_exhaustive]pub enum SourceStorage {
Memory(Arc<[u8]>),
SpillFile {
file: Arc<File>,
len: usize,
path: Arc<TempPath>,
},
}Expand description
Parser-owned storage for source bytes.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Memory(Arc<[u8]>)
Source bytes are held in memory.
SpillFile
Source bytes are held in a temporary spill file.
Trait Implementations§
Source§impl Clone for SourceStorage
impl Clone for SourceStorage
Source§fn clone(&self) -> SourceStorage
fn clone(&self) -> SourceStorage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SourceStorage
impl RefUnwindSafe for SourceStorage
impl Send for SourceStorage
impl Sync for SourceStorage
impl Unpin for SourceStorage
impl UnsafeUnpin for SourceStorage
impl UnwindSafe for SourceStorage
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