pub(crate) struct EnumSingleFieldData {
pub(crate) col_name: Ident,
pub(crate) binding: Ident,
pub(crate) rust_name: Ident,
pub(crate) ty: Type,
pub(crate) needs_into_list: bool,
pub(crate) is_factor: bool,
}Expand description
Data for EnumResolvedField::Single.
Fields§
§col_name: IdentColumn name in the schema.
binding: IdentBinding name used in destructure pattern.
rust_name: IdentOriginal Rust field name (for named variants).
ty: TypeColumn type stored in the companion Vec: the field’s Rust type, also
when needs_into_list is set (the companion holds no R objects).
needs_into_list: boolWhether the column is built by converting each value via .into_list()
when the frame is assembled (into_option_list_column /
into_list_column), rather than through IntoR for the whole Vec.
Set to true only for struct-typed fields (FieldTypeKind::Struct)
that carry #[dataframe(as_list)].
is_factor: boolWhether the field should be emitted as an R factor column.
Set to true for fields annotated with #[dataframe(as_factor)].
The companion struct field type is Vec<Option<T>> (unchanged), but
into_data_frame wraps it in FactorOptionVec<T> to use the
UnitEnumFactor-based blanket IntoR impl.
Auto Trait Implementations§
impl !Send for EnumSingleFieldData
impl !Sync for EnumSingleFieldData
impl Freeze for EnumSingleFieldData
impl RefUnwindSafe for EnumSingleFieldData
impl Unpin for EnumSingleFieldData
impl UnsafeUnpin for EnumSingleFieldData
impl UnwindSafe for EnumSingleFieldData
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> SizeHint for Twhere
T: ?Sized,
impl<T> SizeHint for Twhere
T: ?Sized,
Source§default fn lower_bound(&self) -> usize
default fn lower_bound(&self) -> usize
core_io_internals)[u8; 12] could return any value between 0 and
12 inclusively as a correct implementation. Read moreSource§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