Module librsnek::system::primitives [] [src]

Type aliases and rust defined types used to back the higher level objects

Modules

serialize

Structs

Block

Placeholder for try/catch block accounting

Code

Defines the bytecode object.

ComplexSerdeDef

Serde calls this the definition of the remote type. It is just a copy of the

DictKey

Necessary to hold the computed value of the hash since RtObject cannot call

Frame
Func

Struct defining the data needed for a Python function including the name, signature, module,

Instr

Instruction type used by the compiler and interpreter

Module

WIP

None

None is a alias to the unit struct.

Object

Work in progress to define the properties required to a generic python defined

SetElement

See: DictKey

Signature

Represents the canonical python function signature of

Type

Enums

FuncType
Iterator

Wrapper to hold iterators that come from difference sources.

Native

Enum of well known primitive types similar to modules::builtins::type::Type.

Number

Enum for numeric types

Constants

_IMPL_SERIALIZE_FOR_Block
_IMPL_SERIALIZE_FOR_Code
_IMPL_SERIALIZE_FOR_ComplexSerdeDef
_IMPL_SERIALIZE_FOR_Frame
_IMPL_SERIALIZE_FOR_Func
_IMPL_SERIALIZE_FOR_FuncType
_IMPL_SERIALIZE_FOR_Instr
_IMPL_SERIALIZE_FOR_Native
_IMPL_SERIALIZE_FOR_Signature

Traits

SignatureBuilder

Trait to allow conversions of any implementer into a Signature

Type Definitions

Boolean

Booleans are bool because why do something special like make them an int?

Byte
Bytes
Complex

Complex is represented as

Count

Not exposed as type per se. However, the maximum value of Count (usize) is

Dict

Dictionaries use the standard rust HashMap from collections that map

Float

Floats are doubles (f64) no surprise there, which is the same as CPython.

HashId

Hashes are currently computed using the rust std machinery that computes hashes

Integer

All integer values are aliased to use BigInt by default

List

List is backed by a Vec type which is an array list.

ObjectId

The representation of the Id of an object as the cast of its memory address to

Set

Just a hash set of RtObject.

String

Used the own String type for most string value representations

Tuple

List List, Tuple is backed by a Vec type which is an array list.

WrapperFn

Defines a function ptr to a function with a python like signature of