#[non_exhaustive]#[repr(u32)]pub enum SEXPTYPE {
Show 27 variants
NILSXP = 0,
SYMSXP = 1,
LISTSXP = 2,
CLOSXP = 3,
ENVSXP = 4,
PROMSXP = 5,
LANGSXP = 6,
SPECIALSXP = 7,
BUILTINSXP = 8,
CHARSXP = 9,
LGLSXP = 10,
INTSXP = 13,
REALSXP = 14,
CPLXSXP = 15,
STRSXP = 16,
DOTSXP = 17,
ANYSXP = 18,
VECSXP = 19,
EXPRSXP = 20,
BCODESXP = 21,
EXTPTRSXP = 22,
WEAKREFSXP = 23,
RAWSXP = 24,
S4SXP = 25,
NEWSXP = 30,
FREESXP = 31,
FUNSXP = 99,
}Expand description
R S-expression tag values (SEXPTYPE).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NILSXP = 0
nil = NULL
SYMSXP = 1
symbols
LISTSXP = 2
lists of dotted pairs
CLOSXP = 3
closures
ENVSXP = 4
environments
PROMSXP = 5
promises: [un]evaluated closure arguments
LANGSXP = 6
language constructs (special lists)
SPECIALSXP = 7
special forms
BUILTINSXP = 8
builtin non-special forms
CHARSXP = 9
“scalar” string type (internal only)
LGLSXP = 10
logical vectors
INTSXP = 13
integer vectors
REALSXP = 14
real variables
CPLXSXP = 15
complex variables
STRSXP = 16
string vectors
DOTSXP = 17
dot-dot-dot object
ANYSXP = 18
make “any” args work
VECSXP = 19
generic vectors
EXPRSXP = 20
expressions vectors
BCODESXP = 21
byte code
EXTPTRSXP = 22
external pointer
WEAKREFSXP = 23
weak reference
RAWSXP = 24
raw bytes
S4SXP = 25
S4 non-vector
NEWSXP = 30
fresh node created in new page
FREESXP = 31
node released by GC
FUNSXP = 99
Closure or Builtin
Implementations§
Trait Implementations§
impl Copy for SEXPTYPE
Source§impl Eq for SEXPTYPE
impl Eq for SEXPTYPE
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)]
impl StructuralPartialEq for SEXPTYPE
impl TrivialClone for SEXPTYPE
Auto Trait Implementations§
impl Freeze for SEXPTYPE
impl RefUnwindSafe for SEXPTYPE
impl Send for SEXPTYPE
impl Sync for SEXPTYPE
impl Unpin for SEXPTYPE
impl UnsafeUnpin for SEXPTYPE
impl UnwindSafe for SEXPTYPE
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> Printable for T
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: 4 bytes
Size for each variant:
NILSXP: 0 bytesSYMSXP: 0 bytesLISTSXP: 0 bytesCLOSXP: 0 bytesENVSXP: 0 bytesPROMSXP: 0 bytesLANGSXP: 0 bytesSPECIALSXP: 0 bytesBUILTINSXP: 0 bytesCHARSXP: 0 bytesLGLSXP: 0 bytesINTSXP: 0 bytesREALSXP: 0 bytesCPLXSXP: 0 bytesSTRSXP: 0 bytesDOTSXP: 0 bytesANYSXP: 0 bytesVECSXP: 0 bytesEXPRSXP: 0 bytesBCODESXP: 0 bytesEXTPTRSXP: 0 bytesWEAKREFSXP: 0 bytesRAWSXP: 0 bytesS4SXP: 0 bytesNEWSXP: 0 bytesFREESXP: 0 bytesFUNSXP: 0 bytes