pub struct SidecarAccessorsEntry {
pub rust_type: &'static str,
pub exported: &'static str,
pub internal: &'static str,
pub internal_read_only: &'static str,
pub source_file: &'static str,
pub source_line: u32,
}Expand description
The standalone R accessors #[derive(ExternalPtr)] generates for a
type’s public #[r_data] fields, Type_get_f(x) / Type_set_f(x, value), in three renderings: exported on a “Type Sidecar Accessors” page,
internal (@noRd, no export), or internal without the setters.
collect_r_wrappers writes an internal one for a type whose class has
field syntax (ClassNameEntry::field_syntax): the class’s $ / [[
are its R interface to the fields there, and the setters would write in
place through every copy (#1900); the one without setters when that
syntax is read-only (ClassNameEntry::read_only_fields, #2268). The
derive can’t see the impl’s option, so it emits all three. The internal
renderings also carry the field helpers that those methods call. Written
with the sidecar fragments.
Fields§
§rust_type: &'static strRust type identifier, matched against ClassNameEntry::rust_type.
exported: &'static strThe page and the exported accessors.
internal: &'static strThe same accessors with @noRd and no export, plus field-syntax helpers.
internal_read_only: &'static strSelf::internal without the setters.
source_file: &'static strSource file of the derive (file!()), for the fragment order.
source_line: u32Line of the derived type in source_file.
Trait Implementations§
impl Sync for SidecarAccessorsEntry
Auto Trait Implementations§
impl Forget for SidecarAccessorsEntry
impl Freeze for SidecarAccessorsEntry
impl RefUnwindSafe for SidecarAccessorsEntry
impl Send for SidecarAccessorsEntry
impl Unpin for SidecarAccessorsEntry
impl UnsafeUnpin for SidecarAccessorsEntry
impl UnwindSafe for SidecarAccessorsEntry
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: 88 bytes