Struct repr::RowRef[][src]

#[repr(transparent)]
pub struct RowRef { data: [u8], }
Expand description

A wrapper around a byte slice that guarantees the data are row-formatted.

This type exists to allow row-formatted data to be stored in types that need not contain a Row, for example large contiguous [u8] allocations. It is not expected that most users will use this type, especially as its only constructor is unsafe.

Fields

data: [u8]

Implementations

Construct a RowRef from a byte slice.

Safety

This method is unsafe because if the byte slice is not a valid row encoding, then unpacking its contents can cause undefined behavior.

Unpack self into a Vec<Datum> for efficient random access.

Return the first Datum in self

Panics if the Row is empty.

Iterate the Datum elements of the Row.

For debugging only

True iff there is no data in this Row

Trait Implementations

Debug representation using the internal datums

Display representation using the internal datums

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Converts the given value to a String. Read more