#[repr(C)]pub struct R_altrep_class_t {
pub ptr: SEXP,
}Expand description
Opaque ALTREP class handle.
Fields§
§ptr: SEXPUnderlying class object SEXP.
Implementations§
Source§impl R_altrep_class_t
impl R_altrep_class_t
Sourcepub const fn from_sexp(ptr: SEXP) -> Self
pub const fn from_sexp(ptr: SEXP) -> Self
Create from a raw SEXP pointer.
Rust equivalent of C macro R_SUBTYPE_INIT(x).
Sourcepub unsafe fn new_altrep(self, data1: SEXP, data2: SEXP) -> SEXP
pub unsafe fn new_altrep(self, data1: SEXP, data2: SEXP) -> SEXP
Create a new ALTREP instance with data1 and data2 slots.
§Safety
Must be called on R’s main thread. data1 and data2 must be valid SEXPs.
Sourcepub unsafe fn new_altrep_unchecked(self, data1: SEXP, data2: SEXP) -> SEXP
pub unsafe fn new_altrep_unchecked(self, data1: SEXP, data2: SEXP) -> SEXP
Sourcepub unsafe fn inherits(self, x: SEXP) -> bool
pub unsafe fn inherits(self, x: SEXP) -> bool
Check if x is an instance of this ALTREP class.
§Safety
Must be called on R’s main thread. x must be a valid SEXP.
Sourcepub unsafe fn set_length_method(self, fun: R_altrep_Length_method_t)
pub unsafe fn set_length_method(self, fun: R_altrep_Length_method_t)
Sourcepub unsafe fn set_serialized_state_method(
self,
fun: R_altrep_Serialized_state_method_t,
)
pub unsafe fn set_serialized_state_method( self, fun: R_altrep_Serialized_state_method_t, )
Sourcepub unsafe fn set_unserialize_method(self, fun: R_altrep_Unserialize_method_t)
pub unsafe fn set_unserialize_method(self, fun: R_altrep_Unserialize_method_t)
Sourcepub unsafe fn set_unserialize_ex_method(
self,
fun: R_altrep_UnserializeEX_method_t,
)
pub unsafe fn set_unserialize_ex_method( self, fun: R_altrep_UnserializeEX_method_t, )
Sourcepub unsafe fn set_duplicate_method(self, fun: R_altrep_Duplicate_method_t)
pub unsafe fn set_duplicate_method(self, fun: R_altrep_Duplicate_method_t)
Sourcepub unsafe fn set_duplicate_ex_method(self, fun: R_altrep_DuplicateEX_method_t)
pub unsafe fn set_duplicate_ex_method(self, fun: R_altrep_DuplicateEX_method_t)
Sourcepub unsafe fn set_coerce_method(self, fun: R_altrep_Coerce_method_t)
pub unsafe fn set_coerce_method(self, fun: R_altrep_Coerce_method_t)
Sourcepub unsafe fn set_inspect_method(self, fun: R_altrep_Inspect_method_t)
pub unsafe fn set_inspect_method(self, fun: R_altrep_Inspect_method_t)
Sourcepub unsafe fn set_dataptr_method(self, fun: R_altvec_Dataptr_method_t)
pub unsafe fn set_dataptr_method(self, fun: R_altvec_Dataptr_method_t)
Sourcepub unsafe fn set_dataptr_or_null_method(
self,
fun: R_altvec_Dataptr_or_null_method_t,
)
pub unsafe fn set_dataptr_or_null_method( self, fun: R_altvec_Dataptr_or_null_method_t, )
Sourcepub unsafe fn set_extract_subset_method(
self,
fun: R_altvec_Extract_subset_method_t,
)
pub unsafe fn set_extract_subset_method( self, fun: R_altvec_Extract_subset_method_t, )
Sourcepub unsafe fn set_integer_elt_method(self, fun: R_altinteger_Elt_method_t)
pub unsafe fn set_integer_elt_method(self, fun: R_altinteger_Elt_method_t)
Sourcepub unsafe fn set_integer_get_region_method(
self,
fun: R_altinteger_Get_region_method_t,
)
pub unsafe fn set_integer_get_region_method( self, fun: R_altinteger_Get_region_method_t, )
Sourcepub unsafe fn set_integer_is_sorted_method(
self,
fun: R_altinteger_Is_sorted_method_t,
)
pub unsafe fn set_integer_is_sorted_method( self, fun: R_altinteger_Is_sorted_method_t, )
Sourcepub unsafe fn set_integer_no_na_method(self, fun: R_altinteger_No_NA_method_t)
pub unsafe fn set_integer_no_na_method(self, fun: R_altinteger_No_NA_method_t)
Sourcepub unsafe fn set_integer_sum_method(self, fun: R_altinteger_Sum_method_t)
pub unsafe fn set_integer_sum_method(self, fun: R_altinteger_Sum_method_t)
Sourcepub unsafe fn set_integer_min_method(self, fun: R_altinteger_Min_method_t)
pub unsafe fn set_integer_min_method(self, fun: R_altinteger_Min_method_t)
Sourcepub unsafe fn set_integer_max_method(self, fun: R_altinteger_Max_method_t)
pub unsafe fn set_integer_max_method(self, fun: R_altinteger_Max_method_t)
Sourcepub unsafe fn set_real_elt_method(self, fun: R_altreal_Elt_method_t)
pub unsafe fn set_real_elt_method(self, fun: R_altreal_Elt_method_t)
Sourcepub unsafe fn set_real_get_region_method(
self,
fun: R_altreal_Get_region_method_t,
)
pub unsafe fn set_real_get_region_method( self, fun: R_altreal_Get_region_method_t, )
Sourcepub unsafe fn set_real_is_sorted_method(self, fun: R_altreal_Is_sorted_method_t)
pub unsafe fn set_real_is_sorted_method(self, fun: R_altreal_Is_sorted_method_t)
Sourcepub unsafe fn set_real_no_na_method(self, fun: R_altreal_No_NA_method_t)
pub unsafe fn set_real_no_na_method(self, fun: R_altreal_No_NA_method_t)
Sourcepub unsafe fn set_real_sum_method(self, fun: R_altreal_Sum_method_t)
pub unsafe fn set_real_sum_method(self, fun: R_altreal_Sum_method_t)
Sourcepub unsafe fn set_real_min_method(self, fun: R_altreal_Min_method_t)
pub unsafe fn set_real_min_method(self, fun: R_altreal_Min_method_t)
Sourcepub unsafe fn set_real_max_method(self, fun: R_altreal_Max_method_t)
pub unsafe fn set_real_max_method(self, fun: R_altreal_Max_method_t)
Sourcepub unsafe fn set_logical_elt_method(self, fun: R_altlogical_Elt_method_t)
pub unsafe fn set_logical_elt_method(self, fun: R_altlogical_Elt_method_t)
Sourcepub unsafe fn set_logical_get_region_method(
self,
fun: R_altlogical_Get_region_method_t,
)
pub unsafe fn set_logical_get_region_method( self, fun: R_altlogical_Get_region_method_t, )
Sourcepub unsafe fn set_logical_is_sorted_method(
self,
fun: R_altlogical_Is_sorted_method_t,
)
pub unsafe fn set_logical_is_sorted_method( self, fun: R_altlogical_Is_sorted_method_t, )
Sourcepub unsafe fn set_logical_no_na_method(self, fun: R_altlogical_No_NA_method_t)
pub unsafe fn set_logical_no_na_method(self, fun: R_altlogical_No_NA_method_t)
Sourcepub unsafe fn set_logical_sum_method(self, fun: R_altlogical_Sum_method_t)
pub unsafe fn set_logical_sum_method(self, fun: R_altlogical_Sum_method_t)
Sourcepub unsafe fn set_raw_elt_method(self, fun: R_altraw_Elt_method_t)
pub unsafe fn set_raw_elt_method(self, fun: R_altraw_Elt_method_t)
Sourcepub unsafe fn set_raw_get_region_method(self, fun: R_altraw_Get_region_method_t)
pub unsafe fn set_raw_get_region_method(self, fun: R_altraw_Get_region_method_t)
Sourcepub unsafe fn set_complex_elt_method(self, fun: R_altcomplex_Elt_method_t)
pub unsafe fn set_complex_elt_method(self, fun: R_altcomplex_Elt_method_t)
Sourcepub unsafe fn set_complex_get_region_method(
self,
fun: R_altcomplex_Get_region_method_t,
)
pub unsafe fn set_complex_get_region_method( self, fun: R_altcomplex_Get_region_method_t, )
Sourcepub unsafe fn set_string_elt_method(self, fun: R_altstring_Elt_method_t)
pub unsafe fn set_string_elt_method(self, fun: R_altstring_Elt_method_t)
Sourcepub unsafe fn set_string_set_elt_method(self, fun: R_altstring_Set_elt_method_t)
pub unsafe fn set_string_set_elt_method(self, fun: R_altstring_Set_elt_method_t)
Sourcepub unsafe fn set_string_is_sorted_method(
self,
fun: R_altstring_Is_sorted_method_t,
)
pub unsafe fn set_string_is_sorted_method( self, fun: R_altstring_Is_sorted_method_t, )
Sourcepub unsafe fn set_string_no_na_method(self, fun: R_altstring_No_NA_method_t)
pub unsafe fn set_string_no_na_method(self, fun: R_altstring_No_NA_method_t)
Sourcepub unsafe fn set_list_elt_method(self, fun: R_altlist_Elt_method_t)
pub unsafe fn set_list_elt_method(self, fun: R_altlist_Elt_method_t)
Sourcepub unsafe fn set_list_set_elt_method(self, fun: R_altlist_Set_elt_method_t)
pub unsafe fn set_list_set_elt_method(self, fun: R_altlist_Set_elt_method_t)
Trait Implementations§
Source§impl Clone for R_altrep_class_t
impl Clone for R_altrep_class_t
Source§fn clone(&self) -> R_altrep_class_t
fn clone(&self) -> R_altrep_class_t
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 moreimpl Copy for R_altrep_class_t
impl Send for R_altrep_class_t
impl Sync for R_altrep_class_t
Auto Trait Implementations§
impl Freeze for R_altrep_class_t
impl RefUnwindSafe for R_altrep_class_t
impl Unpin for R_altrep_class_t
impl UnsafeUnpin for R_altrep_class_t
impl UnwindSafe for R_altrep_class_t
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