pub(crate) struct CrateConfig {
pub(crate) noexport_postfix: Option<String>,
pub(crate) source_tags: bool,
pub(crate) call_attribution: Option<CallAttribution>,
pub(crate) conversion_error_class: Vec<String>,
pub(crate) preconditions: Option<bool>,
pub(crate) roxygen_prose_links: Option<ProseLinks>,
}Expand description
Crate-wide defaults declared under [package.metadata.miniextendr].
Fields§
§noexport_postfix: Option<String>noexport_postfix = "...": appended to the Rust name of every
noexport / internal free function that sets neither r_name nor
its own postfix. Exported functions keep their Rust names.
source_tags = true: every generated roxygen block carries a
@source Generated by miniextendr from … provenance tag. Off by
default (#1552): the tag collects one paragraph per function on a
shared Rd page, and the # Generated from Rust fn … (file:line:col)
comment above each wrapper remains the navigation pointer.
call_attribution: Option<CallAttribution>call_attribution = "wrapper" | "caller" | "none": the condition-call
attribution of every free function that neither takes a Call /
CallerCall parameter nor sets call = ... (#1566). caller applies
to noexport / internal functions; exported ones keep wrapper.
none (#1851) applies to every free function: its conditions carry
no call. Unset means the framework default, wrapper.
conversion_error_class: Vec<String>conversion_error_class = "..." | ["...", ...]: classes added to every
argument-conversion condition of the crate, after the error type’s own
RConditionData classes (duplicates skipped) and before the
rust_error layering. Empty when unset.
preconditions: Option<bool>preconditions = true | false: whether the generated R wrappers of
the crate keep their type-derived argument checks (#1566). Below every
item-level and per-parameter spelling, above the
no-preconditions-default feature (see
crate::r_preconditions::resolve_type_checks). Unset means the feature
decides, and without it the checks are kept.
roxygen_prose_links: Option<ProseLinks>roxygen_prose_links = "strip" | "keep": whether the leading prose of
a doc comment keeps its [...] links on its way to @description
(see ProseLinks). Unset means the framework default, strip.
Trait Implementations§
Source§impl Clone for CrateConfig
impl Clone for CrateConfig
Source§impl Debug for CrateConfig
impl Debug for CrateConfig
Source§impl Default for CrateConfig
impl Default for CrateConfig
Source§impl Eq for CrateConfig
impl Eq for CrateConfig
Source§#[doc(hidden)]fn assert_fields_are_eq(&self)
#[doc(hidden)]fn assert_fields_are_eq(&self)
derive_eq_internals)1.0.0 (const: unstable) · Source§#[doc(hidden)]fn assert_receiver_is_total_eq(&self)
#[doc(hidden)]fn assert_receiver_is_total_eq(&self)
implementation detail of #[derive(Eq)]
Source§impl PartialEq for CrateConfig
impl PartialEq for CrateConfig
impl StructuralPartialEq for CrateConfig
Auto Trait Implementations§
impl Freeze for CrateConfig
impl RefUnwindSafe for CrateConfig
impl Send for CrateConfig
impl Sync for CrateConfig
impl Unpin for CrateConfig
impl UnsafeUnpin for CrateConfig
impl UnwindSafe for CrateConfig
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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: 56 bytes