pub(crate) struct EnumStructFieldData {
pub(crate) base_name: String,
pub(crate) binding: Ident,
pub(crate) rust_name: Ident,
pub(crate) inner_ty: Type,
}Expand description
Data for EnumResolvedField::Struct.
A field whose inner type implements DataFrameRow expands to <base_name>_<inner_col>
prefixed columns — one output column per column emitted by the inner type’s companion
DataFrame. Absent-variant rows produce None in every prefixed column.
The companion struct holds Vec<Option<Inner>> (not Vec<Inner>). The into_data_frame
method collects present rows into a dense Vec<Inner> (tracking presence indices),
calls Inner::to_dataframe(present_rows), extracts named column SEXPs, and scatters
them back to the full row count with None-fill for absent rows.
Fields§
§base_name: StringBase name for column prefixing (field name or rename override).
binding: IdentBinding name used in destructure pattern.
rust_name: IdentOriginal Rust field name.
inner_ty: TypeInner struct type (used for the compile-time DataFrameRow assertion and codegen).
Auto Trait Implementations§
impl Freeze for EnumStructFieldData
impl RefUnwindSafe for EnumStructFieldData
impl !Send for EnumStructFieldData
impl !Sync for EnumStructFieldData
impl Unpin for EnumStructFieldData
impl UnsafeUnpin for EnumStructFieldData
impl UnwindSafe for EnumStructFieldData
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
Source§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)]const SIZE: usize = _
#[doc(hidden)]const SIZE: usize = _
sized_type_properties)Source§#[doc(hidden)]const ALIGN: usize = _
#[doc(hidden)]const ALIGN: usize = _
sized_type_properties)Source§#[doc(hidden)]const ALIGNMENT: Alignment = _
#[doc(hidden)]const ALIGNMENT: Alignment = _
ptr_alignment_type)Source§#[doc(hidden)]const IS_ZST: bool = _
#[doc(hidden)]const IS_ZST: bool = _
sized_type_properties)Source§#[doc(hidden)]const LAYOUT: Layout = _
#[doc(hidden)]const LAYOUT: Layout = _
sized_type_properties)Source§#[doc(hidden)]const MAX_SLICE_LEN: usize = _
#[doc(hidden)]const MAX_SLICE_LEN: usize = _
sized_type_properties)[Self]. Read moreLayout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 408 bytes