struct StructFieldData {
rust_name: Ident,
col_name: Ident,
col_name_str: String,
inner_ty: Type,
tuple_index: Option<Index>,
}Expand description
Data for ResolvedField::Struct.
A struct field whose inner type implements DataFrameRow. The companion
struct holds Vec<Inner> (the same type users already pass into
to_dataframe(vec![...])). At into_data_frame() time the inner rows are
converted via Inner::to_dataframe → into_named_columns(), prefixed with
<base_name>_, and pushed into the parent data.frame.
Fields§
§rust_name: IdentRust field name (for access on the row type).
col_name: IdentCompanion struct field name (ident).
col_name_str: StringColumn name base used as the R-side prefix (<base>_<inner_col>).
inner_ty: TypeInner struct type (used for to_dataframe dispatch + DataFrameRow assertion).
tuple_index: Option<Index>Index in tuple struct (None for named).
Auto Trait Implementations§
impl Freeze for StructFieldData
impl RefUnwindSafe for StructFieldData
impl !Send for StructFieldData
impl !Sync for StructFieldData
impl Unpin for StructFieldData
impl UnsafeUnpin for StructFieldData
impl UnwindSafe for StructFieldData
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: 424 bytes