#[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 (const: unstable) · 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
impl TrivialClone 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> SizeEq<MaybeUninit<T>> for T
impl<T> SizeEq<MaybeUninit<T>> for T
type CastFrom = CastSizedExact
Source§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)]const SIZE: usize = _
#[doc(hidden)]const SIZE: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const ALIGN: usize = _
#[doc(hidden)]const ALIGN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const ALIGNMENT: Alignment = _
#[doc(hidden)]const ALIGNMENT: Alignment = _
🔬This is a nightly-only experimental API. (
ptr_alignment_type)Source§#[doc(hidden)]const IS_ZST: bool = _
#[doc(hidden)]const IS_ZST: bool = _
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const LAYOUT: Layout = _
#[doc(hidden)]const LAYOUT: Layout = _
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const MAX_SLICE_LEN: usize = _
#[doc(hidden)]const MAX_SLICE_LEN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties)The largest safe length for a
[Self]. Read moreimpl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> InvariantsEq<ManuallyDrop<T>> for Twhere
T: ?Sized,
impl<T> InvariantsEq<T> for Twhere
T: ?Sized,
impl<T> InvariantsEq<Unalign<T>> for T
impl<T> InvariantsEq<Wrapping<T>> for T
impl<Src, Dst, A, SV, DV, R> MutationCompatible<Src, A, SV, DV, (BecauseRead, R)> for Dst
impl<Src, Dst, A, SV, DV> MutationCompatible<Src, A, SV, DV, BecauseInvariantsEq> for Dstwhere
A: Aliasing,
SV: Validity,
DV: Validity,
Src: TransmuteFrom<Dst, DV, SV> + ?Sized,
Dst: TransmuteFrom<Src, SV, DV> + InvariantsEq<Src> + ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> TransmuteFrom<Cell<T>, Valid, Valid> for Twhere
T: ?Sized,
impl<T> TransmuteFrom<ManuallyDrop<T>, Valid, Valid> for Twhere
T: ?Sized,
impl<T> TransmuteFrom<ReadOnly<T>, Valid, Valid> for Twhere
T: ?Sized,
impl<Src, Dst> TransmuteFrom<Src, Initialized, Initialized> for Dst
impl<Src, Dst, V> TransmuteFrom<Src, V, Uninit> for Dst
impl<Src, Dst> TransmuteFrom<Src, Valid, Initialized> for Dst
impl<T> TransmuteFrom<Unalign<T>, Valid, Valid> for T
impl<T> TransmuteFrom<UnsafeCell<T>, Valid, Valid> for Twhere
T: ?Sized,
impl<T> TransmuteFrom<Wrapping<T>, Valid, Valid> for T
impl<Src, Dst, A, SV, DV, C, R> TransmuteFromPtr<Src, A, SV, DV, C, R> for Dstwhere
A: Aliasing,
SV: Validity,
DV: Validity,
C: CastExact<Src, Dst>,
Dst: TransmuteFrom<Src, SV, DV> + TryTransmuteFromPtr<Src, A, SV, DV, C, R> + ?Sized,
Src: ?Sized,
impl<Src, Dst, SV, DV, A, C, R> TryTransmuteFromPtr<Src, A, SV, DV, C, (BecauseMutationCompatible, R)> for Dstwhere
A: Aliasing,
SV: Validity,
DV: Validity,
Src: TransmuteFrom<Dst, DV, SV> + ?Sized,
Dst: MutationCompatible<Src, A, SV, DV, R> + ?Sized,
C: CastExact<Src, Dst>,
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: 8 bytes