struct SingleFieldData {
rust_name: Ident,
col_name: Ident,
col_name_str: String,
ty: Type,
tuple_index: Option<Index>,
needs_into_list: bool,
}Expand description
Data for ResolvedField::Single.
Fields§
§rust_name: IdentRust field name (for access).
col_name: IdentColumn name in the DataFrame.
col_name_str: StringColumn name string.
ty: TypeField type stored in the companion Vec<#ty>. For #[dataframe(as_list)]
on a struct-typed field this is overridden to ::miniextendr_api::list::List
— see needs_into_list.
tuple_index: Option<Index>Index in tuple struct (None for named).
needs_into_list: bool#[dataframe(as_list)] on a struct-typed field (#485 workaround).
When true, the companion field type is overridden to List and
From<Vec<Row>> calls IntoList::into_list() on each row value.
Auto Trait Implementations§
impl Freeze for SingleFieldData
impl RefUnwindSafe for SingleFieldData
impl !Send for SingleFieldData
impl !Sync for SingleFieldData
impl Unpin for SingleFieldData
impl UnsafeUnpin for SingleFieldData
impl UnwindSafe for SingleFieldData
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: 432 bytes