pub enum RecordRef<'a> {
Lean {
batch: &'a LeanBatch,
record: &'a LeanRecord,
},
Full(&'a Record),
}Expand description
One record, without a record having been built for it.
A key, value or header list is materialised when asked for, not at decode time — which is the point: every slice of a batch buffer increments the same atomic refcount, so a caller that skips a record should not pay for it.
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for RecordRef<'a>
impl<'a> RefUnwindSafe for RecordRef<'a>
impl<'a> Send for RecordRef<'a>
impl<'a> Sync for RecordRef<'a>
impl<'a> Unpin for RecordRef<'a>
impl<'a> UnsafeUnpin for RecordRef<'a>
impl<'a> UnwindSafe for RecordRef<'a>
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