#[non_exhaustive]pub enum ObjectType {
Show 26 variants
Null,
None,
False,
True,
StopIteration,
Ellipsis,
Int,
BinaryFloat,
BinaryComplex,
Long,
String,
Interned,
Ref,
Tuple,
List,
Dict,
Code,
Unicode,
Unknown,
Set,
FrozenSet,
Ascii,
AsciiInterned,
SmallTuple,
ShortAscii,
ShortAsciiInterned,
}
Expand description
§Object type flag in the binary “marshal” format
This enum represents the type of objects as determined by the first byte of their representation in the binary “marshal” format.
Note: Some types are not handled in this implementation, since they were replaced with other types and are not written by recent versions of Python:
'T'
(TYPE_INT64
)'f'
(TYPE_FLOAT
)'x'
(TYPE_COMPLEX
)
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Null
Type of a null pointer
None
Type of the None
singleton object
False
Type of False
True
Type of True
StopIteration
Type of the StopIteration
singleton object
Ellipsis
Type of the ...
(ellipsis) singleton object
Int
Type of 32-bit integers
BinaryFloat
Type of 64-bit floating-point numbers
BinaryComplex
Type of 64-bit floating-point complex numbers
Long
Type of dynamically sized integers
String
Type of strings
Interned
Type of interned strings
Ref
Type of object references
Tuple
Type of tuples
List
Type of lists
Dict
Type of dicts
Code
Type of code objects
Unicode
Type of unicode strings
Unknown
Type of unknown objects
Set
Type of sets
FrozenSet
Type of frozensets
Ascii
Type of ASCII strings
AsciiInterned
Type of interned ASCII strings
SmallTuple
Type of small tuples
ShortAscii
Type of short ASCII strings
ShortAsciiInterned
Type of short interned ASCII strings
Trait Implementations§
Source§impl Clone for ObjectType
impl Clone for ObjectType
Source§fn clone(&self) -> ObjectType
fn clone(&self) -> ObjectType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more