Struct mz_persist_types::dyn_col::DynColumnMut
source · pub 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
sourcepub fn new<T: Data>(col: Box<T::Mut>) -> Self
pub fn new<T: Data>(col: Box<T::Mut>) -> Self
Create a new DynColumnMut
from an instance of Data::Mut
.
pub(crate) fn new_untyped(typ: &DataType) -> Self
pub(crate) fn typ(&self) -> &DataType
sourcepub fn downcast<T: Data>(self) -> Result<Box<T::Mut>, String>
pub fn downcast<T: Data>(self) -> Result<Box<T::Mut>, String>
Returns the inner value if it is a column of type T
, or an Err if it isn’t.
sourcepub fn downcast_mut<T: Data>(&mut self) -> Result<&mut T::Mut, String>
pub fn downcast_mut<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(crate) fn push_default(&mut self)
pub(crate) fn push_from(&mut self, src: &DynColumnRef, idx: usize)
sourcepub fn finish<T: Data>(self) -> Result<DynColumnRef, String>
pub fn finish<T: Data>(self) -> Result<DynColumnRef, String>
Closes the column to pushes and returns it as a DynColumnRef.
Trait Implementations§
source§impl Debug for DynColumnMut
impl Debug for DynColumnMut
source§impl From<DynColumnMut> for DynColumnRef
impl From<DynColumnMut> for DynColumnRef
source§fn from(value: DynColumnMut) -> Self
fn from(value: DynColumnMut) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DynColumnMut
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> 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
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<T> Pointable for T
impl<T> Pointable for T
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
.