Module otter_api_tests::shapelib [−][src]
Modules
imp | |
mem | Basic functions for dealing with memory. |
movehist | |
piece_specs | |
sse | |
sshkeys | |
termprogress | |
timespec_serde | |
toml_de | |
void | Void |
Macros
Debug | Derive macro generating an impl of the trait |
Hash | Derive macro generating an impl of the trait |
anyhow | Construct an ad-hoc error from a string or existing non- |
dbgc | |
debug | Logs a message at the debug level. |
define_index_type | Generate the boilerplate for a newtyped index struct, for use with
|
delegate | |
deref_to_field | |
deref_to_field_mut | |
display_as_debug | |
display_consequential_impls | |
ensure | Return early with an error if a condition is not satisfied. |
ensure_eq | |
env | Inspects an environment variable at compile time. |
error | Logs a message at the error level. |
error_from_losedetails | |
format_by_fmt_hex | |
hformat | |
hformat_as_display | |
hwrite | |
if_chain | Macro for writing nested |
if_let | |
impl_downcast | Adds downcasting support to traits that extend |
impl_for_slotmap_key | |
index_vec | A macro equivalent to the stdlib’s |
info | Logs a message at the info level. |
izip | Create an iterator running multiple iterators in lockstep. |
lazy_static | |
log | The standard logging macro. |
log_enabled | Determines if a message logged at the specified level in that module will be logged. |
matches_doesnot | |
throw | Throw an error. |
trace | Logs a message at the trace level. |
trace_dbg | |
visible_slotmap_key | |
want | |
want_failed_internal | |
want_let | |
wantok | |
wants | |
warn | Logs a message at the warn level. |
Structs
Enums
Constants
Traits
AccessId | |
AccountNameOrId | |
Any | A trait to emulate dynamic typing. |
AsRawFd | A trait to extract the raw unix file descriptor from an underlying object. |
Borrow | A trait for borrowing data. |
Bounded | Numbers which have upper and lower bounds |
BufRead | A |
ById | |
ClampTable | |
CommandExt | Unix-specific extensions to the |
ConstantTimeEq | An |
Context | Provides the |
Debug |
|
DebugExt | |
Deref | Used for immutable dereferencing operations, like |
DerefMut | Used for mutable dereferencing operations, like in |
Deserialize | A data structure that can be deserialized from any data format supported by Serde. |
DeserializeOwned | A data structure that can be deserialized without borrowing any data from the deserializer. |
Deserializer | A data format that can deserialize any data structure supported by Serde. |
Digest | The |
Display | Format trait for an empty format, |
Downcast | Supports conversion to |
DynCastExt | Simplifies the use of the |
EmptyType | |
Enum | Enum mapping type |
EnumCount | A trait for capturing the number of variants in Enum. This trait can be autoderived by
|
EnumMessage | Associates additional pieces of information with an Enum. This can be
autoimplemented by deriving |
EnumProperty | EnumProperty is a trait that makes it possible to store additional information
with enum variants. This trait is designed to be used with the macro of the same
name in the |
Error |
|
ExitStatusExt | Unix-specific extensions to |
FileExt | Extension trait for |
FromPrimitive | A generic trait for converting a number to a value. |
FromStr | Parse a value from a string |
Hash | A hashable type. |
Hasher | A trait for hashing an arbitrary stream of bytes. |
HtmlFormat | |
HtmlFormatRef | |
HtmlIteratorExt | |
IdForById | |
Index | Used for indexing operations ( |
IndexMut | Used for indexing operations ( |
IndexVecITExt | |
IntoEnumIterator | This trait designates that an |
IntoRawFd | A trait to express the ability to consume an object and acquire ownership of its raw file descriptor. |
IoTryClone | |
IteratorExt | |
Itertools | An |
JsonLen | |
KeyDataExt | Extension trait for |
LibrarySource | |
LocalFileExt | |
MetadataExt | Unix-specific extensions to |
MgmtBundleListExt | |
OccultationViewDef | |
OccultedPieceTrait | |
OpenOptionsExt | Unix-specific extensions to |
Optionpiece_specsPieceLabelExt | |
OrdExt | |
OsStrExt | Platform-specific extensions to |
OutlineDefn | |
OutlineTrait | |
PieceSpec | |
PieceTrait | |
PieceXData | |
PieceXDataStateExt | |
PlayerAccessSpec | |
PosPromote | |
Read | The |
ReadBytesExt | Extends |
ReadDebug | |
ReadExt | |
ResultVoidErrExt | Extensions to |
ResultVoidExt | Extensions to |
Rng | An automatically-implemented extension trait on |
SeekExt | |
Serialize | A data structure that can be serialized into any data format supported by Serde. |
SerializeTuple | Returned from |
Serializer | A data format that can serialize any data structure supported by Serde. |
SimplePieceSpec | |
SliceRandom | Extension trait on slices, providing random mutation and sampling methods. |
SlotmapSparseSecondaryEntryExt | |
SplitAtDelim | |
Timed | |
TimedFdReadWrite | |
TimedRead | |
TimedWrite | |
ToPrimitive | A generic trait for converting a value to a number. |
TryFrom | Simple and safe type conversions that may fail in a controlled
way under some circumstances. It is the reciprocal of |
TryInto | An attempted conversion that consumes |
TupleOfLinkKindRefstrExt | |
VecPieceIdPieceUpdateOpsExt | |
VecTExt | |
Write | A trait for objects which are byte-oriented sinks. |
WriteBytesExt | Extends |
WriteDebug | |
_ | A trait for writing or formatting into Unicode-accepting buffers or streams. |
_ | OS-specific extensions to |
_ | This trait defines a number of combinator-style methods for use with |
_ | Key used to access stored values in a slot map. |
_ | |
anyhowErrorExt | |
nixErrorExt |
Functions
client_periodic_expiry | |
clock_gettime | Get the time of the specified clock, (see clock_gettime(2)). |
config | |
consistency_check | |
create_occultation | |
dbgc_helper | |
default | |
exit | Terminates the current process with the specified exit code. |
fmt_hex | |
game_flush_task | |
games_lock | |
internal_error_bydebug | |
internal_logic_error | |
io_copy_interactive | |
keydata_extract | Underlying extraction function. Fails rather than panicing. |
lib_name_list | |
load_1_global_library | |
load_accounts | |
load_catalogue | |
load_games | |
load_global_libs | |
log_config | |
log_did_to_piece | |
log_did_to_piece_whoby | |
logs_periodic_expiry | |
lookup_token | |
max | Compares and returns the maximum of two values. |
min | Compares and returns the minimum of two values. |
parse_fixed_hex | |
parse_slice_hex | |
percent_decode_str | Percent-decode the given string. |
piece_pri | None => do not render at all |
player_dasharray | |
player_num_dasharray | |
process_all_players_for_account | |
program_name | |
raw_angle_transform | |
recalculate_occultation_piece | |
record_token | |
remove_occultation | |
repeat_with | Creates a new iterator that repeats elements of type |
savefilename | |
set_program_name | |
sleep | Puts the current thread to sleep for at least the specified amount of time. |
slotkey_parse | |
slotkey_write | |
space_rect_attrs | |
space_table_attrs | |
svg_circle_path | |
svg_rectangle_path | |
svg_rescale_path | |
synch_logentry | |
thread_rng | Retrieve the lazily-initialized thread-local random number generator,
seeded by the system. Intended to be used in method chaining style,
e.g. |
timestring_abbreviate | |
toml_merge | |
unreachable | A safe version of |
utf8_percent_encode | Percent-encode the UTF-8 encoding of the given string. |
vpiece_decode | |
zip_eq | Iterate |
Type Definitions
AE | |
APOE | |
AS | |
ActualIPieces | |
AuthorisationSuperuser | |
BundlesGuard | |
ClientMgmtChannel | |
Colour | |
Coord | |
ESVU | |
FaceColourSpecs | |
GPlayers | |
GamesGuard | |
GamesTable | |
IE | |
ItemSpecLoaded | |
MC | |
ME | |
MGI | |
MGR | |
MR | |
MgmtBundleList | |
Mutex | A mutual exclusion primitive useful for protecting shared data |
MutexGuard | An RAII implementation of a “scoped lock” of a mutex. When this structure is dropped (falls out of scope), the lock will be unlocked. |
NotchNumber | |
OE | |
OccK | |
OccultationKind | |
POE | |
POEPP | |
PUE | |
PUE_P | |
PUFOS | |
PUM | |
PUO | |
PUOs | |
ParseError | A type alias for |
PieceSpecLoadedOccultable | |
PieceUpdateFromOpSimple | |
PieceUpdateOps_PerPlayer | |
PieceUpdateResult | |
PieceXDataState | |
PlayerUpdatesLog | |
Pos | |
PreparedPieceUpdate | |
PriOcculted | |
RawAcl | |
RawClientSequence | |
RawFaceId | |
RawFd | Raw file descriptors. |
RawStdout | |
Rect | |
Region | |
RwLockWriteGuard | RAII structure used to release the exclusive write access of a lock when dropped. |
SecondarySlotMap | |
SimpleShape | |
SomeUnpreparedUpdates | |
SpE | |
StartupError | |
SvgAttrs | |
SvgData | |
SvgE | |
TimedFdReader | |
TimedFdWriter | |
TokenTable | |
UnpreparedUpdates | |
UoKey | |
UpdateFromOpComplex | |
VisiblePieceAngle | |
WRC |
Attribute Macros
dyn_upcast | |
enum_dispatch | Annotating a trait or enum definition with an |
ext | See crate docs for more info. |
throws |
Derive Macros
Deserialize | |
DeserializeFromStr | Deserialize value by using it’s |
Enum | Procedural derive generating |
EnumCount | Add a constant |
EnumIter | Creates a new type that iterates of the variants of an enum. |
EnumMessage | Add a verbose message to an enum variant. |
EnumProperty | Add custom properties to enum variants. |
EnumString | Converts strings to enum variants based on their name. |
Error | |
FromPrimitive | Derives |
IntoStaticStr | Implements |
Serialize | |
SerializeDisplay | Serialize value by using it’s |
ToPrimitive | Derives |