Struct mz_persist_types::dyn_struct::DynStructMut
source · pub struct DynStructMut { /* private fields */ }
Expand description
A crate::columnar::ColumnPush impl for DynStruct.
Implementations§
source§impl DynStructMut
impl DynStructMut
sourcepub fn from_parts(
cfg: DynStructCfg,
len: usize,
validity: Option<MutableBitmap>,
cols: Vec<DynColumnMut>
) -> Self
pub fn from_parts( cfg: DynStructCfg, len: usize, validity: Option<MutableBitmap>, 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.
Trait Implementations§
source§impl ColumnPush<DynStruct> for DynStructMut
impl ColumnPush<DynStruct> for DynStructMut
source§fn push<'a>(&mut self, val: DynStructRef<'a>)
fn push<'a>(&mut self, val: DynStructRef<'a>)
Pushes a new value into this column.
source§impl ColumnPush<Option<DynStruct>> for DynStructMut
impl ColumnPush<Option<DynStruct>> for DynStructMut
source§fn push<'a>(&mut self, val: Option<DynStructRef<'a>>)
fn push<'a>(&mut self, val: Option<DynStructRef<'a>>)
Pushes a new value into this column.
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<R, O, T> CopyOnto<ConsecutiveOffsetPairs<R, O>> for T
impl<R, O, T> CopyOnto<ConsecutiveOffsetPairs<R, O>> for T
source§fn copy_onto(
self,
target: &mut ConsecutiveOffsetPairs<R, O>
) -> <ConsecutiveOffsetPairs<R, O> as Region>::Index
fn copy_onto( self, target: &mut ConsecutiveOffsetPairs<R, O> ) -> <ConsecutiveOffsetPairs<R, O> as Region>::Index
Copy self into the target container, returning an index that allows to
look up the corresponding read item.
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
.