struct SidecarSlot {
name: Ident,
ty: Type,
index: usize,
is_public: bool,
kind: SlotKind,
prop_doc: Option<String>,
}Expand description
Information about a single #[r_data]-annotated sidecar slot field.
Collected during struct field parsing and used to generate FFI getter/setter functions and R wrapper code for each public slot.
Fields§
§name: IdentRust identifier of the field (e.g., count, name).
ty: TypeRust type of the field, used in conversion-based getter/setter codegen.
index: usizeZero-based index of this slot in the protection VECSXP
(offset from PROT_BASE_LEN, which reserves slots for type ID and user data).
is_public: boolWhether the field is pub. Only public fields get R accessor functions.
kind: SlotKindDetermines the codegen strategy for reading/writing this slot.
prop_doc: Option<String>Optional documentation string for the S7 @prop tag.
Sourced from #[r_data(prop_doc = "...")]. None means no doc was supplied;
a default fallback string is used at emit time.
Auto Trait Implementations§
impl Freeze for SidecarSlot
impl RefUnwindSafe for SidecarSlot
impl !Send for SidecarSlot
impl !Sync for SidecarSlot
impl Unpin for SidecarSlot
impl UnsafeUnpin for SidecarSlot
impl UnwindSafe for SidecarSlot
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: 392 bytes