pub enum RowIdSequence {
InlineRowIds(Vec<u8>),
ExternalRowIds(ExternalFile),
}Expand description
A serialized RowIdSequence message (see rowids.proto).
These are the row ids for the fragment, in order of the rows as they appear. That is, if a fragment has 3 rows, and the row ids are [1, 42, 3], then the first row is row 1, the second row is row 42, and the third row is row 3.
Variants§
InlineRowIds(Vec<u8>)
If small (< 200KB), the row ids are stored inline.
ExternalRowIds(ExternalFile)
Otherwise, stored as part of a file.
Implementations§
Source§impl RowIdSequence
impl RowIdSequence
Sourcepub fn merge(
field: &mut Option<RowIdSequence>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<RowIdSequence>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
Sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
Source§impl Clone for RowIdSequence
impl Clone for RowIdSequence
Source§fn clone(&self) -> RowIdSequence
fn clone(&self) -> RowIdSequence
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RowIdSequence
impl Debug for RowIdSequence
Source§impl PartialEq for RowIdSequence
impl PartialEq for RowIdSequence
Source§impl TryFrom<RowIdSequence> for RowIdMeta
impl TryFrom<RowIdSequence> for RowIdMeta
impl StructuralPartialEq for RowIdSequence
Auto Trait Implementations§
impl Freeze for RowIdSequence
impl RefUnwindSafe for RowIdSequence
impl Send for RowIdSequence
impl Sync for RowIdSequence
impl Unpin for RowIdSequence
impl UnwindSafe for RowIdSequence
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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