Crate datatypes

source ·
Expand description

This is a create for all the datatypes used across the whole project

Structs§

  • A wrapper struct representing a rotation angle in steps of 1/256 of a full turn.
  • A wrapper containing a list of type T that implements DataReader and DataWriter
  • A wrapper for a bitset, containing n/64 values where n is the amount of bits
  • A wrapper struct for a boolean value, typically used for implementing DataReader and DataWriter.
  • A wrapper struct for a signed 8-bit integer value, typically used for implementing DataReader and DataWriter.
  • A wrapper containing a List of unsigned 8-bit integers
  • A wrapper struct for a 64-bit floating-point value, typically used for implementing DataReader and DataWriter.
  • A wrapper containing an enum T, represented by the type S T needs to implement ImportantEnumTrait S needs to implement DataReader + GetU64
  • A wrapper for a bitset, containing n/64 values where n is the amount of bits But the size n = S is defined from the beginning
  • A wrapper struct for a 32-bit floating-point value, typically used for implementing DataReader and DataWriter.
  • Represents a namespaced location in the form of namespace:value.
  • A wrapper struct for a signed 32-bit integer value, typically used for implementing DataReader and DataWriter.
  • A wrapper holding a string that should be valid json
  • A wrapper struct for a signed 64-bit integer value, typically used for implementing DataReader and DataWriter.
  • A wraper struct to hold x, z and y where y is the height
  • A wrapper struct for a signed 16-bit value, typically used for implementing DataReader and DataWriter.
  • A wrapper holding string
  • A wrapper holding an unsigned 128-bit integer representing an UUID
  • A wrapper struct for an unsigned 8-bit integer value, typically used for implementing DataReader and DataWriter.
  • A wrapper struct for an unsigned 16-bit value, typically used for implementing DataReader and DataWriter.
  • A wrapper struct for a signed 32-bit value, typically used for implementing DataReader and DataWriter. But the writen size of this type can vary based on the size of the data.
  • A wrapper struct for a signed 64-bit value, typically used for implementing DataReader and DataWriter. But the writen size of this type can vary based on the size of the data.

Traits§

  • A trait needed for enum operations, implemented by types that have to be converted to u64
  • This trait is implemented by enums to be used in the artificial Enum struct
  • A trait implemented by types to provide a new and get_value function