pub struct SidecarAccessorsEntry {
pub rust_type: &'static str,
pub exported: &'static str,
pub internal: &'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 two renderings: exported on a “Type Sidecar Accessors” page,
or internal (@noRd, no export). collect_r_wrappers writes the
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 internal rendering also carries 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.
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 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: 72 bytes