pub enum RWrapperPriority {
Sidecar,
Class,
Function,
TraitImpl,
Vctrs,
}Expand description
Ordering priority for R wrapper code fragments.
Variant declaration order = output order. The order matters because R evaluates the wrapper file top-to-bottom, so dependencies must come first: sidecar accessors before class definitions, classes before functions, etc.
Variants§
Sidecar
#[r_data] getters/setters — must come before class definitions.
Class
Class definitions (impl blocks: env/R6/S3/S4/S7).
Function
Standalone #[miniextendr] functions.
TraitImpl
Trait impl wrappers (impl Trait for Type).
Vctrs
Vctrs S3 method wrappers (#[derive(Vctrs)]).
Trait Implementations§
Source§impl Clone for RWrapperPriority
impl Clone for RWrapperPriority
Source§fn clone(&self) -> RWrapperPriority
fn clone(&self) -> RWrapperPriority
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Ord for RWrapperPriority
impl Ord for RWrapperPriority
Source§fn cmp(&self, other: &RWrapperPriority) -> Ordering
fn cmp(&self, other: &RWrapperPriority) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RWrapperPriority
impl PartialEq for RWrapperPriority
Source§impl PartialOrd for RWrapperPriority
impl PartialOrd for RWrapperPriority
impl Copy for RWrapperPriority
impl Eq for RWrapperPriority
impl StructuralPartialEq for RWrapperPriority
Auto Trait Implementations§
impl Freeze for RWrapperPriority
impl RefUnwindSafe for RWrapperPriority
impl Send for RWrapperPriority
impl Sync for RWrapperPriority
impl Unpin for RWrapperPriority
impl UnsafeUnpin for RWrapperPriority
impl UnwindSafe for RWrapperPriority
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
Mutably borrows from an owned value. Read more