enum ClassRefForm {
Loud,
OrBare,
OrAny,
}Expand description
What a .__MX_CLASS_REF_* placeholder writes when its Rust type has no
ClassNameEntry, and which registered classes it accepts.
Variants§
Loud
.__MX_CLASS_REF_<RustName>__: the bare Rust name, with a warning.
For a class object that must exist: R6 inherit =, an S7 parent, an
S7 conversion, and the R6 / S7 / S4 class of a WrapAs* return or a
trait impl.
OrBare
.__MX_CLASS_REF_OR_BARE_<RustName>__: the bare Rust name, quietly.
For a name any string can be: the S3 / Env / vctrs class of a
WrapAs* return or a trait impl (#2265, #2266).
OrAny
.__MX_CLASS_REF_OR_ANY_<RustName>__: S7::class_any, also for a
registered class that is not S7. For an S7 property class constraint
(#203: a getter returning SEXP, PathBuf, or an R6/S3/S4 type
shouldn’t break load-time with “object ‘…’ not found”; the property
falls back to the permissive class_any it had pre-#154).
Trait Implementations§
Source§impl Clone for ClassRefForm
impl Clone for ClassRefForm
impl Copy for ClassRefForm
impl TrivialClone for ClassRefForm
Auto Trait Implementations§
impl Forget for ClassRefForm
impl Freeze for ClassRefForm
impl RefUnwindSafe for ClassRefForm
impl Send for ClassRefForm
impl Sync for ClassRefForm
impl Unpin for ClassRefForm
impl UnsafeUnpin for ClassRefForm
impl UnwindSafe for ClassRefForm
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,
impl<T> ConsumingFallible for Twhere
T: Clone,
Source§impl<T> RCopy for Twhere
T: Copy,
impl<T> RCopy for Twhere
T: Copy,
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: 1 byte
Size for each variant:
Loud: 0 bytesOrBare: 0 bytesOrAny: 0 bytes