Struct mz_persist_types::dyn_struct::DynStructMut
source · pub struct DynStructMut {
cfg: DynStructCfg,
len: usize,
validity: Option<<bool as Data>::Mut>,
cols: Vec<DynColumnMut>,
}
Expand description
A crate::columnar::ColumnPush impl for DynStruct.
Fields§
§cfg: DynStructCfg
§len: usize
§validity: Option<<bool as Data>::Mut>
§cols: Vec<DynColumnMut>
Implementations§
source§impl DynStructMut
impl DynStructMut
sourcepub fn from_parts(
cfg: DynStructCfg,
len: usize,
validity: Option<BooleanBufferBuilder>,
cols: Vec<DynColumnMut>,
) -> Self
pub fn from_parts( cfg: DynStructCfg, len: usize, validity: Option<BooleanBufferBuilder>, cols: Vec<DynColumnMut>, ) -> Self
Create a DynStructMut
from individual parts.
Note: it’s up to the user to ensure the provided cfg
has the same column types as the
provided cols
. We can’t validate it here because DataType
s are not easily comparable.
sourcepub fn cfg(&self) -> &DynStructCfg
pub fn cfg(&self) -> &DynStructCfg
Returns the configuration for this column.
sourcepub fn as_mut(self) -> ColumnsMut
pub fn as_mut(self) -> ColumnsMut
Explodes this non-optional struct column into its component fields.
Panics if this struct is optional.
sourcepub fn as_opt_mut(self) -> ColumnsMut<ValidityMut>
pub fn as_opt_mut(self) -> ColumnsMut<ValidityMut>
Explodes this optional struct column into its component fields and validity.
If the column is actually non-option, succeeds and acts as if every value is a Some.
fn push_cols(&mut self, val: DynStructRef<'_>)
Trait Implementations§
source§impl ColumnMut<DynStructCfg> for DynStructMut
impl ColumnMut<DynStructCfg> for DynStructMut
source§fn new(cfg: &DynStructCfg) -> Self
fn new(cfg: &DynStructCfg) -> Self
Construct an empty instance of this type with the given
configuration.
source§fn cfg(&self) -> &DynStructCfg
fn cfg(&self) -> &DynStructCfg
Returns the super::ColumnCfg for this column.
source§impl ColumnPush<DynStruct> for DynStructMut
impl ColumnPush<DynStruct> for DynStructMut
source§impl ColumnPush<Option<DynStruct>> for DynStructMut
impl ColumnPush<Option<DynStruct>> for DynStructMut
source§impl Debug for DynStructMut
impl Debug for DynStructMut
source§impl From<DynStructMut> for DynStructCol
impl From<DynStructMut> for DynStructCol
source§fn from(value: DynStructMut) -> Self
fn from(value: DynStructMut) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DynStructMut
impl !RefUnwindSafe for DynStructMut
impl Send for DynStructMut
impl Sync for DynStructMut
impl Unpin for DynStructMut
impl !UnwindSafe for DynStructMut
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
.