Struct mz_persist_types::part::DynColumnMut
source · struct DynColumnMut(DataType, Box<dyn Any + Send + Sync>);
Expand description
A type-erased crate::columnar::Data::Mut.
Tuple Fields§
§0: DataType
§1: Box<dyn Any + Send + Sync>
Implementations§
source§impl DynColumnMut
impl DynColumnMut
fn new<T: Data>(col: T::Mut) -> Self
fn new_untyped(typ: &DataType) -> Self
sourcepub fn downcast<T: Data>(&mut self) -> Result<&mut T::Mut, String>
pub fn downcast<T: Data>(&mut self) -> Result<&mut T::Mut, String>
Returns a typed, exclusive reference to the inner value if it is a
column of type T
, or an Err if it isn’t.
pub fn finish<T: Data>(self) -> Result<DynColumnRef, String>
fn finish_untyped(self) -> DynColumnRef
Trait Implementations§
source§impl DataFn<DynColumnMut> for NewUntypedDataFn
impl DataFn<DynColumnMut> for NewUntypedDataFn
fn call<T: Data>(self) -> DynColumnMut
Auto Trait Implementations§
impl !RefUnwindSafe for DynColumnMut
impl Send for DynColumnMut
impl Sync for DynColumnMut
impl Unpin for DynColumnMut
impl !UnwindSafe for DynColumnMut
Blanket Implementations§
source§impl<T> FutureExt for T
impl<T> FutureExt for T
source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
source§impl<P, R> ProtoType<R> for Pwhere
R: RustType<P>,
impl<P, R> ProtoType<R> for Pwhere R: RustType<P>,
source§fn into_rust(self) -> Result<R, TryFromProtoError>
fn into_rust(self) -> Result<R, TryFromProtoError>
See
RustType::from_proto
.source§fn from_rust(rust: &R) -> P
fn from_rust(rust: &R) -> P
See
RustType::into_proto
.