Struct mz_repr::row::encoding::DataMut

source ·
pub struct DataMut<'a, T: DatumToPersist>(&'a mut <T::Data as Data>::Mut);
Expand description

A newtype wrapper for &mut T::Mut.

This is necessary for enum_dispatch to create From/TryInto (conflicting impls if we try to store &mut T::Mut directly in the enum variants), but it’s also a convenient place to hang a std::fmt::Debug impl.

Tuple Fields§

§0: &'a mut <T::Data as Data>::Mut

Trait Implementations§

source§

impl<'a, T: DatumToPersist> DatumEncoderT<'a> for DataMut<'a, T>

source§

fn encode(&mut self, datum: Datum<'_>)

source§

fn encode_default(&mut self)

source§

impl<T: DatumToPersist> Debug for DataMut<'_, T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a> From<DataMut<'a, Date>> for DatumEncoder<'a>

source§

fn from(v: DataMut<'a, Date>) -> DatumEncoder<'a>

Converts to this type from the input type.
source§

impl<'a> From<DataMut<'a, Jsonb>> for DatumEncoder<'a>

source§

fn from(v: DataMut<'a, Jsonb>) -> DatumEncoder<'a>

Converts to this type from the input type.
source§

impl<'a> From<DataMut<'a, NullableProtoDatumToPersist>> for DatumEncoder<'a>

source§

fn from(v: DataMut<'a, NullableProtoDatumToPersist>) -> DatumEncoder<'a>

Converts to this type from the input type.
source§

impl<'a> From<DataMut<'a, Option<Date>>> for DatumEncoder<'a>

source§

fn from(v: DataMut<'a, Option<Date>>) -> DatumEncoder<'a>

Converts to this type from the input type.
source§

impl<'a> From<DataMut<'a, Option<Jsonb>>> for DatumEncoder<'a>

source§

fn from(v: DataMut<'a, Option<Jsonb>>) -> DatumEncoder<'a>

Converts to this type from the input type.
source§

impl<'a> From<DataMut<'a, Option<String>>> for DatumEncoder<'a>

source§

fn from(v: DataMut<'a, Option<String>>) -> DatumEncoder<'a>

Converts to this type from the input type.
source§

impl<'a> From<DataMut<'a, Option<Timestamp>>> for DatumEncoder<'a>

source§

fn from(v: DataMut<'a, Option<Timestamp>>) -> DatumEncoder<'a>

Converts to this type from the input type.
source§

impl<'a> From<DataMut<'a, Option<Vec<u8>>>> for DatumEncoder<'a>

source§

fn from(v: DataMut<'a, Option<Vec<u8>>>) -> DatumEncoder<'a>

Converts to this type from the input type.
source§

impl<'a> From<DataMut<'a, Option<bool>>> for DatumEncoder<'a>

source§

fn from(v: DataMut<'a, Option<bool>>) -> DatumEncoder<'a>

Converts to this type from the input type.
source§

impl<'a> From<DataMut<'a, Option<f32>>> for DatumEncoder<'a>

source§

fn from(v: DataMut<'a, Option<f32>>) -> DatumEncoder<'a>

Converts to this type from the input type.
source§

impl<'a> From<DataMut<'a, Option<f64>>> for DatumEncoder<'a>

source§

fn from(v: DataMut<'a, Option<f64>>) -> DatumEncoder<'a>

Converts to this type from the input type.
source§

impl<'a> From<DataMut<'a, Option<i16>>> for DatumEncoder<'a>

source§

fn from(v: DataMut<'a, Option<i16>>) -> DatumEncoder<'a>

Converts to this type from the input type.
source§

impl<'a> From<DataMut<'a, Option<i32>>> for DatumEncoder<'a>

source§

fn from(v: DataMut<'a, Option<i32>>) -> DatumEncoder<'a>

Converts to this type from the input type.
source§

impl<'a> From<DataMut<'a, Option<i64>>> for DatumEncoder<'a>

source§

fn from(v: DataMut<'a, Option<i64>>) -> DatumEncoder<'a>

Converts to this type from the input type.
source§

impl<'a> From<DataMut<'a, Option<u16>>> for DatumEncoder<'a>

source§

fn from(v: DataMut<'a, Option<u16>>) -> DatumEncoder<'a>

Converts to this type from the input type.
source§

impl<'a> From<DataMut<'a, Option<u32>>> for DatumEncoder<'a>

source§

fn from(v: DataMut<'a, Option<u32>>) -> DatumEncoder<'a>

Converts to this type from the input type.
source§

impl<'a> From<DataMut<'a, Option<u64>>> for DatumEncoder<'a>

source§

fn from(v: DataMut<'a, Option<u64>>) -> DatumEncoder<'a>

Converts to this type from the input type.
source§

impl<'a> From<DataMut<'a, Option<u8>>> for DatumEncoder<'a>

source§

fn from(v: DataMut<'a, Option<u8>>) -> DatumEncoder<'a>

Converts to this type from the input type.
source§

impl<'a> From<DataMut<'a, ProtoDatumToPersist>> for DatumEncoder<'a>

source§

fn from(v: DataMut<'a, ProtoDatumToPersist>) -> DatumEncoder<'a>

Converts to this type from the input type.
source§

impl<'a> From<DataMut<'a, String>> for DatumEncoder<'a>

source§

fn from(v: DataMut<'a, String>) -> DatumEncoder<'a>

Converts to this type from the input type.
source§

impl<'a> From<DataMut<'a, Timestamp>> for DatumEncoder<'a>

source§

fn from(v: DataMut<'a, Timestamp>) -> DatumEncoder<'a>

Converts to this type from the input type.
source§

impl<'a> From<DataMut<'a, Vec<u8>>> for DatumEncoder<'a>

source§

fn from(v: DataMut<'a, Vec<u8>>) -> DatumEncoder<'a>

Converts to this type from the input type.
source§

impl<'a> From<DataMut<'a, bool>> for DatumEncoder<'a>

source§

fn from(v: DataMut<'a, bool>) -> DatumEncoder<'a>

Converts to this type from the input type.
source§

impl<'a> From<DataMut<'a, f32>> for DatumEncoder<'a>

source§

fn from(v: DataMut<'a, f32>) -> DatumEncoder<'a>

Converts to this type from the input type.
source§

impl<'a> From<DataMut<'a, f64>> for DatumEncoder<'a>

source§

fn from(v: DataMut<'a, f64>) -> DatumEncoder<'a>

Converts to this type from the input type.
source§

impl<'a> From<DataMut<'a, i16>> for DatumEncoder<'a>

source§

fn from(v: DataMut<'a, i16>) -> DatumEncoder<'a>

Converts to this type from the input type.
source§

impl<'a> From<DataMut<'a, i32>> for DatumEncoder<'a>

source§

fn from(v: DataMut<'a, i32>) -> DatumEncoder<'a>

Converts to this type from the input type.
source§

impl<'a> From<DataMut<'a, i64>> for DatumEncoder<'a>

source§

fn from(v: DataMut<'a, i64>) -> DatumEncoder<'a>

Converts to this type from the input type.
source§

impl<'a> From<DataMut<'a, u16>> for DatumEncoder<'a>

source§

fn from(v: DataMut<'a, u16>) -> DatumEncoder<'a>

Converts to this type from the input type.
source§

impl<'a> From<DataMut<'a, u32>> for DatumEncoder<'a>

source§

fn from(v: DataMut<'a, u32>) -> DatumEncoder<'a>

Converts to this type from the input type.
source§

impl<'a> From<DataMut<'a, u64>> for DatumEncoder<'a>

source§

fn from(v: DataMut<'a, u64>) -> DatumEncoder<'a>

Converts to this type from the input type.
source§

impl<'a> From<DataMut<'a, u8>> for DatumEncoder<'a>

source§

fn from(v: DataMut<'a, u8>) -> DatumEncoder<'a>

Converts to this type from the input type.
source§

impl<'a> TryInto<DataMut<'a, Date>> for DatumEncoder<'a>

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<DataMut<'a, Date>, <Self as TryInto<DataMut<'a, Date>>>::Error>

Performs the conversion.
source§

impl<'a> TryInto<DataMut<'a, Jsonb>> for DatumEncoder<'a>

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<DataMut<'a, Jsonb>, <Self as TryInto<DataMut<'a, Jsonb>>>::Error>

Performs the conversion.
source§

impl<'a> TryInto<DataMut<'a, NullableProtoDatumToPersist>> for DatumEncoder<'a>

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<DataMut<'a, NullableProtoDatumToPersist>, <Self as TryInto<DataMut<'a, NullableProtoDatumToPersist>>>::Error>

Performs the conversion.
source§

impl<'a> TryInto<DataMut<'a, Option<Date>>> for DatumEncoder<'a>

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<DataMut<'a, Option<Date>>, <Self as TryInto<DataMut<'a, Option<Date>>>>::Error>

Performs the conversion.
source§

impl<'a> TryInto<DataMut<'a, Option<Jsonb>>> for DatumEncoder<'a>

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<DataMut<'a, Option<Jsonb>>, <Self as TryInto<DataMut<'a, Option<Jsonb>>>>::Error>

Performs the conversion.
source§

impl<'a> TryInto<DataMut<'a, Option<String>>> for DatumEncoder<'a>

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<DataMut<'a, Option<String>>, <Self as TryInto<DataMut<'a, Option<String>>>>::Error>

Performs the conversion.
source§

impl<'a> TryInto<DataMut<'a, Option<Timestamp>>> for DatumEncoder<'a>

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<DataMut<'a, Option<Timestamp>>, <Self as TryInto<DataMut<'a, Option<Timestamp>>>>::Error>

Performs the conversion.
source§

impl<'a> TryInto<DataMut<'a, Option<Vec<u8>>>> for DatumEncoder<'a>

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<DataMut<'a, Option<Vec<u8>>>, <Self as TryInto<DataMut<'a, Option<Vec<u8>>>>>::Error>

Performs the conversion.
source§

impl<'a> TryInto<DataMut<'a, Option<bool>>> for DatumEncoder<'a>

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<DataMut<'a, Option<bool>>, <Self as TryInto<DataMut<'a, Option<bool>>>>::Error>

Performs the conversion.
source§

impl<'a> TryInto<DataMut<'a, Option<f32>>> for DatumEncoder<'a>

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<DataMut<'a, Option<f32>>, <Self as TryInto<DataMut<'a, Option<f32>>>>::Error>

Performs the conversion.
source§

impl<'a> TryInto<DataMut<'a, Option<f64>>> for DatumEncoder<'a>

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<DataMut<'a, Option<f64>>, <Self as TryInto<DataMut<'a, Option<f64>>>>::Error>

Performs the conversion.
source§

impl<'a> TryInto<DataMut<'a, Option<i16>>> for DatumEncoder<'a>

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<DataMut<'a, Option<i16>>, <Self as TryInto<DataMut<'a, Option<i16>>>>::Error>

Performs the conversion.
source§

impl<'a> TryInto<DataMut<'a, Option<i32>>> for DatumEncoder<'a>

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<DataMut<'a, Option<i32>>, <Self as TryInto<DataMut<'a, Option<i32>>>>::Error>

Performs the conversion.
source§

impl<'a> TryInto<DataMut<'a, Option<i64>>> for DatumEncoder<'a>

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<DataMut<'a, Option<i64>>, <Self as TryInto<DataMut<'a, Option<i64>>>>::Error>

Performs the conversion.
source§

impl<'a> TryInto<DataMut<'a, Option<u16>>> for DatumEncoder<'a>

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<DataMut<'a, Option<u16>>, <Self as TryInto<DataMut<'a, Option<u16>>>>::Error>

Performs the conversion.
source§

impl<'a> TryInto<DataMut<'a, Option<u32>>> for DatumEncoder<'a>

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<DataMut<'a, Option<u32>>, <Self as TryInto<DataMut<'a, Option<u32>>>>::Error>

Performs the conversion.
source§

impl<'a> TryInto<DataMut<'a, Option<u64>>> for DatumEncoder<'a>

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<DataMut<'a, Option<u64>>, <Self as TryInto<DataMut<'a, Option<u64>>>>::Error>

Performs the conversion.
source§

impl<'a> TryInto<DataMut<'a, Option<u8>>> for DatumEncoder<'a>

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<DataMut<'a, Option<u8>>, <Self as TryInto<DataMut<'a, Option<u8>>>>::Error>

Performs the conversion.
source§

impl<'a> TryInto<DataMut<'a, ProtoDatumToPersist>> for DatumEncoder<'a>

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<DataMut<'a, ProtoDatumToPersist>, <Self as TryInto<DataMut<'a, ProtoDatumToPersist>>>::Error>

Performs the conversion.
source§

impl<'a> TryInto<DataMut<'a, String>> for DatumEncoder<'a>

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<DataMut<'a, String>, <Self as TryInto<DataMut<'a, String>>>::Error>

Performs the conversion.
source§

impl<'a> TryInto<DataMut<'a, Timestamp>> for DatumEncoder<'a>

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<DataMut<'a, Timestamp>, <Self as TryInto<DataMut<'a, Timestamp>>>::Error>

Performs the conversion.
source§

impl<'a> TryInto<DataMut<'a, Vec<u8>>> for DatumEncoder<'a>

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<DataMut<'a, Vec<u8>>, <Self as TryInto<DataMut<'a, Vec<u8>>>>::Error>

Performs the conversion.
source§

impl<'a> TryInto<DataMut<'a, bool>> for DatumEncoder<'a>

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<DataMut<'a, bool>, <Self as TryInto<DataMut<'a, bool>>>::Error>

Performs the conversion.
source§

impl<'a> TryInto<DataMut<'a, f32>> for DatumEncoder<'a>

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<DataMut<'a, f32>, <Self as TryInto<DataMut<'a, f32>>>::Error>

Performs the conversion.
source§

impl<'a> TryInto<DataMut<'a, f64>> for DatumEncoder<'a>

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<DataMut<'a, f64>, <Self as TryInto<DataMut<'a, f64>>>::Error>

Performs the conversion.
source§

impl<'a> TryInto<DataMut<'a, i16>> for DatumEncoder<'a>

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<DataMut<'a, i16>, <Self as TryInto<DataMut<'a, i16>>>::Error>

Performs the conversion.
source§

impl<'a> TryInto<DataMut<'a, i32>> for DatumEncoder<'a>

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<DataMut<'a, i32>, <Self as TryInto<DataMut<'a, i32>>>::Error>

Performs the conversion.
source§

impl<'a> TryInto<DataMut<'a, i64>> for DatumEncoder<'a>

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<DataMut<'a, i64>, <Self as TryInto<DataMut<'a, i64>>>::Error>

Performs the conversion.
source§

impl<'a> TryInto<DataMut<'a, u16>> for DatumEncoder<'a>

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<DataMut<'a, u16>, <Self as TryInto<DataMut<'a, u16>>>::Error>

Performs the conversion.
source§

impl<'a> TryInto<DataMut<'a, u32>> for DatumEncoder<'a>

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<DataMut<'a, u32>, <Self as TryInto<DataMut<'a, u32>>>::Error>

Performs the conversion.
source§

impl<'a> TryInto<DataMut<'a, u64>> for DatumEncoder<'a>

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<DataMut<'a, u64>, <Self as TryInto<DataMut<'a, u64>>>::Error>

Performs the conversion.
source§

impl<'a> TryInto<DataMut<'a, u8>> for DatumEncoder<'a>

§

type Error = &'static str

The type returned in the event of a conversion error.
source§

fn try_into( self ) -> Result<DataMut<'a, u8>, <Self as TryInto<DataMut<'a, u8>>>::Error>

Performs the conversion.

Auto Trait Implementations§

§

impl<'a, T> RefUnwindSafe for DataMut<'a, T>where <<T as DatumToPersist>::Data as Data>::Mut: RefUnwindSafe,

§

impl<'a, T> Send for DataMut<'a, T>

§

impl<'a, T> Sync for DataMut<'a, T>

§

impl<'a, T> Unpin for DataMut<'a, T>

§

impl<'a, T> !UnwindSafe for DataMut<'a, T>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,

source§

fn cast_into(self) -> U

Performs the cast.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> FutureExt for T

source§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
source§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> Pointable for T

source§

const ALIGN: usize = _

The alignment of pointer.
§

type Init = T

The type for initializers.
source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<P, R> ProtoType<R> for Pwhere R: RustType<P>,

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more