pub struct KeyCodec;Expand description
Ordered, schema-directed composite-key codec.
Implementations§
Source§impl KeyCodec
impl KeyCodec
pub fn encode_row(types: &[LogicalType], values: &[Value]) -> Result<Vec<u8>>
pub fn encode_row_into( types: &[LogicalType], values: &[Value], out: &mut Vec<u8>, ) -> Result<()>
pub fn encode_scalar( logical_type: &LogicalType, value: &Value, ) -> Result<Vec<u8>>
pub fn decode_row(types: &[LogicalType], encoded: &[u8]) -> Result<Vec<Value>>
pub fn decode_scalar( logical_type: &LogicalType, encoded: &[u8], ) -> Result<Value>
Auto Trait Implementations§
impl Freeze for KeyCodec
impl RefUnwindSafe for KeyCodec
impl Send for KeyCodec
impl Sync for KeyCodec
impl Unpin for KeyCodec
impl UnsafeUnpin for KeyCodec
impl UnwindSafe for KeyCodec
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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