struct StructEnumAttrs {
class: Option<String>,
base: Option<String>,
list: bool,
dataframe: bool,
externalptr: bool,
match_arg: bool,
factor: bool,
prefer: Option<String>,
}Expand description
Parsed attributes for #[miniextendr] on structs/enums.
These attributes control which derive path is taken when #[miniextendr]
is applied to a struct or enum.
Fields§
§class: Option<String>ALTREP class name override (forwarded to the ALTREP derive path).
base: Option<String>ALTREP base type override (forwarded to the ALTREP derive path).
list: boolDerive IntoList + TryFromList + PreferList for struct-to-list round-tripping.
dataframe: boolDerive DataFrameRow for struct-to-data-frame conversion.
externalptr: boolForce ExternalPtr derive even on single-field structs (which default to ALTREP).
match_arg: boolDerive MatchArg for enum (single-selection from R character scalar).
factor: boolDerive RFactor for enum (R factor representation).
prefer: Option<String>Preference marker string: "externalptr", "list", "dataframe", or "native".
Acts as a soft mode selector when no explicit mode attribute is set.
Auto Trait Implementations§
impl Freeze for StructEnumAttrs
impl RefUnwindSafe for StructEnumAttrs
impl Send for StructEnumAttrs
impl Sync for StructEnumAttrs
impl Unpin for StructEnumAttrs
impl UnsafeUnpin for StructEnumAttrs
impl UnwindSafe for StructEnumAttrs
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: 80 bytes