Struct mz_repr::row::encoding::DataMut

source ·
pub struct DataMut<T: DatumToPersist>(Box<<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: Box<<T::Data as Data>::Mut>

Trait Implementations§

source§

impl<T: DatumToPersist> DatumEncoderT for DataMut<T>

source§

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

source§

fn encode_default(&mut self)

source§

fn finish(self) -> DynColumnMut

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 From<DataMut<Date>> for DatumEncoder

source§

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

Converts to this type from the input type.
source§

impl From<DataMut<Jsonb>> for DatumEncoder

source§

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

Converts to this type from the input type.
source§

impl From<DataMut<NullableProtoDatumToPersist>> for DatumEncoder

source§

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

Converts to this type from the input type.
source§

impl From<DataMut<NullableProtoDatumToPersistNoStats>> for DatumEncoder

source§

fn from(v: DataMut<NullableProtoDatumToPersistNoStats>) -> DatumEncoder

Converts to this type from the input type.
source§

impl From<DataMut<Option<Date>>> for DatumEncoder

source§

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

Converts to this type from the input type.
source§

impl From<DataMut<Option<Jsonb>>> for DatumEncoder

source§

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

Converts to this type from the input type.
source§

impl From<DataMut<Option<String>>> for DatumEncoder

source§

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

Converts to this type from the input type.
source§

impl From<DataMut<Option<Timestamp>>> for DatumEncoder

source§

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

Converts to this type from the input type.
source§

impl From<DataMut<Option<Vec<u8>>>> for DatumEncoder

source§

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

Converts to this type from the input type.
source§

impl From<DataMut<Option<bool>>> for DatumEncoder

source§

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

Converts to this type from the input type.
source§

impl From<DataMut<Option<f32>>> for DatumEncoder

source§

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

Converts to this type from the input type.
source§

impl From<DataMut<Option<f64>>> for DatumEncoder

source§

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

Converts to this type from the input type.
source§

impl From<DataMut<Option<i16>>> for DatumEncoder

source§

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

Converts to this type from the input type.
source§

impl From<DataMut<Option<i32>>> for DatumEncoder

source§

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

Converts to this type from the input type.
source§

impl From<DataMut<Option<i64>>> for DatumEncoder

source§

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

Converts to this type from the input type.
source§

impl From<DataMut<Option<u16>>> for DatumEncoder

source§

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

Converts to this type from the input type.
source§

impl From<DataMut<Option<u32>>> for DatumEncoder

source§

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

Converts to this type from the input type.
source§

impl From<DataMut<Option<u64>>> for DatumEncoder

source§

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

Converts to this type from the input type.
source§

impl From<DataMut<Option<u8>>> for DatumEncoder

source§

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

Converts to this type from the input type.
source§

impl From<DataMut<ProtoDatumToPersist>> for DatumEncoder

source§

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

Converts to this type from the input type.
source§

impl From<DataMut<ProtoDatumToPersistNoStats>> for DatumEncoder

source§

fn from(v: DataMut<ProtoDatumToPersistNoStats>) -> DatumEncoder

Converts to this type from the input type.
source§

impl From<DataMut<String>> for DatumEncoder

source§

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

Converts to this type from the input type.
source§

impl From<DataMut<Timestamp>> for DatumEncoder

source§

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

Converts to this type from the input type.
source§

impl From<DataMut<Vec<u8>>> for DatumEncoder

source§

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

Converts to this type from the input type.
source§

impl From<DataMut<bool>> for DatumEncoder

source§

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

Converts to this type from the input type.
source§

impl From<DataMut<f32>> for DatumEncoder

source§

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

Converts to this type from the input type.
source§

impl From<DataMut<f64>> for DatumEncoder

source§

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

Converts to this type from the input type.
source§

impl From<DataMut<i16>> for DatumEncoder

source§

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

Converts to this type from the input type.
source§

impl From<DataMut<i32>> for DatumEncoder

source§

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

Converts to this type from the input type.
source§

impl From<DataMut<i64>> for DatumEncoder

source§

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

Converts to this type from the input type.
source§

impl From<DataMut<u16>> for DatumEncoder

source§

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

Converts to this type from the input type.
source§

impl From<DataMut<u32>> for DatumEncoder

source§

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

Converts to this type from the input type.
source§

impl From<DataMut<u64>> for DatumEncoder

source§

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

Converts to this type from the input type.
source§

impl From<DataMut<u8>> for DatumEncoder

source§

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

Converts to this type from the input type.
source§

impl TryInto<DataMut<Date>> for DatumEncoder

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<DataMut<Jsonb>> for DatumEncoder

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<DataMut<NullableProtoDatumToPersist>> for DatumEncoder

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<DataMut<NullableProtoDatumToPersistNoStats>> for DatumEncoder

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<DataMut<Option<Date>>> for DatumEncoder

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<DataMut<Option<Jsonb>>> for DatumEncoder

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<DataMut<Option<String>>> for DatumEncoder

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<DataMut<Option<Timestamp>>> for DatumEncoder

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<DataMut<Option<Vec<u8>>>> for DatumEncoder

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<DataMut<Option<bool>>> for DatumEncoder

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<DataMut<Option<f32>>> for DatumEncoder

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<DataMut<Option<f64>>> for DatumEncoder

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<DataMut<Option<i16>>> for DatumEncoder

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<DataMut<Option<i32>>> for DatumEncoder

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<DataMut<Option<i64>>> for DatumEncoder

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<DataMut<Option<u16>>> for DatumEncoder

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<DataMut<Option<u32>>> for DatumEncoder

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<DataMut<Option<u64>>> for DatumEncoder

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<DataMut<Option<u8>>> for DatumEncoder

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<DataMut<ProtoDatumToPersist>> for DatumEncoder

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<DataMut<ProtoDatumToPersistNoStats>> for DatumEncoder

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<DataMut<String>> for DatumEncoder

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<DataMut<Timestamp>> for DatumEncoder

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<DataMut<Vec<u8>>> for DatumEncoder

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<DataMut<bool>> for DatumEncoder

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<DataMut<f32>> for DatumEncoder

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<DataMut<f64>> for DatumEncoder

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<DataMut<i16>> for DatumEncoder

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<DataMut<i32>> for DatumEncoder

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<DataMut<i64>> for DatumEncoder

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<DataMut<u16>> for DatumEncoder

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<DataMut<u32>> for DatumEncoder

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<DataMut<u64>> for DatumEncoder

§

type Error = &'static str

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

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

Performs the conversion.
source§

impl TryInto<DataMut<u8>> for DatumEncoder

§

type Error = &'static str

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

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

Performs the conversion.

Auto Trait Implementations§

§

impl<T> Freeze for DataMut<T>

§

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

§

impl<T> Send for DataMut<T>

§

impl<T> Sync for DataMut<T>

§

impl<T> Unpin for DataMut<T>

§

impl<T> UnwindSafe for DataMut<T>
where <<T as DatumToPersist>::Data as Data>::Mut: UnwindSafe,

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where 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 T
where 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 T
where 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, U> OverrideFrom<Option<&T>> for U
where U: OverrideFrom<T>,

source§

fn override_from(self, layer: &Option<&T>) -> U

Override the configuration represented by Self with values from the given layer.
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 P
where R: RustType<P>,

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<'a, S, T> Semigroup<&'a S> for T
where T: Semigroup<S>,

source§

fn plus_equals(&mut self, rhs: &&'a S)

The method of std::ops::AddAssign, for types that do not implement AddAssign.
source§

impl<T, U> TryFrom<U> for T
where 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 T
where 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 T
where 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
source§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,