pub enum LintCode {
MXL008,
MXL009,
MXL010,
MXL106,
MXL110,
MXL111,
MXL112,
MXL120,
MXL203,
MXL300,
MXL301,
MXL302,
}Expand description
Stable lint rule identifier.
Display format is MXL###, derived directly from the variant name.
Variants§
MXL008
Trait impl class system incompatible with inherent impl class system.
MXL009
Multiple impl blocks for one type without labels.
MXL010
Duplicate labels on impl blocks for one type.
MXL106
Registered top-level function is not pub.
MXL110
Parameter name is an R reserved word; codegen will produce invalid R syntax.
MXL111
s4_* method name on #[miniextendr(s4)] impl — codegen auto-prepends s4_.
MXL112
Explicit lifetime parameter on #[miniextendr] fn or impl — use owned types instead.
MXL120
vctrs constructor returns Self / named type, or impl has an instance-method receiver.
Mirror: miniextendr-macros/src/miniextendr_impl.rs (proc-macro hard error).
Both checks must fire on the same source; keep them in sync.
MXL203
internal + noexport redundancy.
MXL300
Direct Rf_error/Rf_errorcall call in user code.
MXL301
_unchecked FFI call outside guard context.
MXL302
Non-doc attribute interrupts a doc-comment stream on a #[miniextendr] item.
When a #[cfg(...)], #[deprecated], or other non-doc attribute splits two
/// runs, trailing prose can be incorrectly concatenated into the preceding
@examples / @details / @return block, producing corrupted Rd output.
The macro now resets multiline-continuation context at the interruption point,
but the warning guides users to move all /// comments above such attributes.
Implementations§
Trait Implementations§
Source§impl Eq for LintCode
impl Eq for LintCode
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 Ord for LintCode
impl Ord for LintCode
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for LintCode
impl PartialOrd for LintCode
Source§#[doc(hidden)]fn __chaining_lt(&self, other: &Rhs) -> ControlFlow<bool>
#[doc(hidden)]fn __chaining_lt(&self, other: &Rhs) -> ControlFlow<bool>
partial_ord_chaining_methods)self == other, returns ControlFlow::Continue(()).
Otherwise, returns ControlFlow::Break(self < other). Read moreSource§#[doc(hidden)]fn __chaining_le(&self, other: &Rhs) -> ControlFlow<bool>
#[doc(hidden)]fn __chaining_le(&self, other: &Rhs) -> ControlFlow<bool>
partial_ord_chaining_methods)__chaining_lt, but for <= instead of <.Source§#[doc(hidden)]fn __chaining_gt(&self, other: &Rhs) -> ControlFlow<bool>
#[doc(hidden)]fn __chaining_gt(&self, other: &Rhs) -> ControlFlow<bool>
partial_ord_chaining_methods)__chaining_lt, but for > instead of <.Source§#[doc(hidden)]fn __chaining_ge(&self, other: &Rhs) -> ControlFlow<bool>
#[doc(hidden)]fn __chaining_ge(&self, other: &Rhs) -> ControlFlow<bool>
partial_ord_chaining_methods)__chaining_lt, but for >= instead of <.impl Copy for LintCode
impl StructuralPartialEq for LintCode
impl TrivialClone for LintCode
Auto Trait Implementations§
impl Freeze for LintCode
impl RefUnwindSafe for LintCode
impl Send for LintCode
impl Sync for LintCode
impl Unpin for LintCode
impl UnsafeUnpin for LintCode
impl UnwindSafe for LintCode
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> 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 moreimpl<T> Printable for T
Layout§
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: 1 byte
Size for each variant:
MXL008: 0 bytesMXL009: 0 bytesMXL010: 0 bytesMXL106: 0 bytesMXL110: 0 bytesMXL111: 0 bytesMXL112: 0 bytesMXL120: 0 bytesMXL203: 0 bytesMXL300: 0 bytesMXL301: 0 bytesMXL302: 0 bytes