pub struct FileReadBatch { /* private fields */ }Implementations§
Source§impl FileReadBatch
impl FileReadBatch
Sourcepub fn try_map<U, E>(
self,
additional_peak: usize,
map: impl FnOnce(FileBatch) -> Result<U, E>,
) -> Result<ReadBatch<U>, E>
pub fn try_map<U, E>( self, additional_peak: usize, map: impl FnOnce(FileBatch) -> Result<U, E>, ) -> Result<ReadBatch<U>, E>
Moves a unique file batch through an admitted projection.
Shared batches or slices refuse; allocation and escape rules match ReadBatch::try_map.
pub fn offset(&self) -> u64
pub fn bytes(&self) -> &[u8] ⓘ
pub fn owner(&self) -> Arc<impl Borrow<FileBatch> + Send + Sync + 'static> ⓘ
pub fn slice(&self, range: Range<usize>) -> FileReadSlice
Trait Implementations§
Source§impl Borrow<FileBatch> for FileReadBatch
impl Borrow<FileBatch> for FileReadBatch
Source§impl Clone for FileReadBatch
impl Clone for FileReadBatch
Source§fn clone(&self) -> FileReadBatch
fn clone(&self) -> FileReadBatch
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 moreSource§impl Debug for FileReadBatch
impl Debug for FileReadBatch
Source§impl MemorySize for FileReadBatch
impl MemorySize for FileReadBatch
fn memory_size(&self) -> usize
Source§const INLINE_ONLY: bool = false
const INLINE_ONLY: bool = false
True only when every value occupies exactly
size_of::<Self>() bytes,
with no separately owned allocations or additional accounting charge.Auto Trait Implementations§
impl Freeze for FileReadBatch
impl RefUnwindSafe for FileReadBatch
impl Send for FileReadBatch
impl Sync for FileReadBatch
impl Unpin for FileReadBatch
impl UnsafeUnpin for FileReadBatch
impl UnwindSafe for FileReadBatch
Blanket Implementations§
impl<T> Allocation for T
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