pub struct ReadBatch<T> { /* private fields */ }Implementations§
Source§impl<T> ReadBatch<T>
impl<T> ReadBatch<T>
pub fn new(value: T) -> ReadBatch<T>
Sourcepub fn try_map<U, E>(
self,
map: impl FnOnce(T) -> Result<U, E>,
) -> Result<ReadBatch<U>, E>
pub fn try_map<U, E>( self, map: impl FnOnce(T) -> Result<U, E>, ) -> Result<ReadBatch<U>, E>
Moves A Unique Batch Through A Fallible Projection.
pub fn try_map_with<U, V, E>( self, other: ReadBatch<U>, map: impl FnOnce(T, U) -> Result<V, E>, ) -> Result<ReadBatch<V>, E>
pub fn owner(&self) -> Arc<impl Borrow<T> + Send + Sync + 'static> ⓘ
Trait Implementations§
Source§impl<T> MemorySize for ReadBatch<T>where
T: MemorySize,
impl<T> MemorySize for ReadBatch<T>where
T: MemorySize,
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<T> Freeze for ReadBatch<T>
impl<T> RefUnwindSafe for ReadBatch<T>where
Arc<ReadOwner<T>>: RefUnwindSafe,
impl<T> Send for ReadBatch<T>
impl<T> Sync for ReadBatch<T>
impl<T> Unpin for ReadBatch<T>
impl<T> UnsafeUnpin for ReadBatch<T>where
Arc<ReadOwner<T>>: UnsafeUnpin,
impl<T> UnwindSafe for ReadBatch<T>where
Arc<ReadOwner<T>>: UnwindSafe,
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