Expand description
Otter game system (part thereeof)
https://www.chiark.greenend.org.uk/~ianmdlvl/otter/docs/README.html
This crate is intended for use only by other parts of Otter.
Modules§
- anyhow
- github crates-io docs-rs
- async_
condvar_ fair - async-condvar-fair
- authproofs
- base64
- Configs
- base_
misc - boolinator
- Provides the
Boolinatortrait, which lets you useOptionandResult-style combinators withbools. - btree_
map - An ordered map based on a B-Tree.
- btree_
set - An ordered set based on a B-Tree.
- bundles
- cast
- cast_
trait_ object - This crate offers functionality for casting between trait objects using only
safe Rust and no platform specific code. If you want to downcast to concrete
types instead of other trait objects then this crate can’t help you, instead
use
std::anyor a crate likedowncast-rs. - childio
- chrono
- Chrono: Date and Time for Rust
- chrono_
tz - Chrono-TZ 0.4.1
- cmp
- Utilities for comparing and ordering values.
- delegate
- This crate removes some boilerplate for structs that simply delegate some of their methods to one or more of their fields.
- digest
- This crate provides traits which describe functionality of cryptographic hash functions and Message Authentication algorithms.
- digestrw
- educe
- Educe
- either
- The enum
Eitherwith variantsLeftandRightis a general purpose sum type with two cases. - env
- Inspection and manipulation of the process’s environment.
- env_
logger - A simple logger that can be configured via environment variables, for use
with the logging facade exposed by the
logcrate. - flexi_
logger - A flexible and easy-to-use logger that writes logs to stderr and/or to files or other output streams.
- fmt
- Utilities for formatting and printing
Strings. - fs
- Filesystem manipulation operations.
- fs2
- Extended utilities for working with files and filesystems in Rust.
- geometry
- glob
- Support for matching file paths against Unix shell style patterns.
- hash_
map - A hash map implemented with quadratic probing and SIMD lookup.
- humantime
- Human-friendly time parser and formatter
- humantime_
serde - Serde support for the
humantimecrate. - imp
- index_
vec - This crate helps with defining “newtype”-style wrappers around
usize(or other integers),Vec<T>, and[T]so that some additional type safety can be gained at zero cost. - inventory
- github crates-io docs-rs
- io
- Traits, helpers, and type definitions for core I/O functionality.
- iter
- Composable external iteration.
- lazy_
init - A crate for things that are
- lazy_
regex - With lazy-regex macros, regular expressions
- lazy_
static - A macro for declaring lazily evaluated statics.
- libc
- libc - Raw FFI bindings to platforms’ system libraries
- loaded_
acl - log
- A lightweight logging facade.
- materials_
format - movehist
- mpsc
- Multi-producer, single-consumer FIFO queue communication primitives.
- nix
- Rust friendly bindings to the various *nix system functions.
- nwtemplates
- once_
cell - Overview
- ordered_
float - Wrappers for total order on Floats. See the
OrderedFloatandNotNandocs for details. - organise
- otter_
base - Otter game system (part thereeof)
- otter_
support - parking_
lot - This library provides implementations of
Mutex,RwLock,CondvarandOncethat are smaller, faster and more flexible than those in the Rust standard library. It also provides aReentrantMutextype. - piece_
specs - progress
- pwd
- Safe interface to
<pwd.h> - rand
- Utilities for random number generation
- regex
- This crate provides routines for searching strings for matches of a regular
expression (aka “regex”). The regex syntax supported by this crate is similar
to other regex engines, but it lacks several features that are not known how to
implement efficiently. This includes, but is not limited to, look-around and
backreferences. In exchange, all regex searches in this crate have worst case
O(m * n)time complexity, wheremis proportional to the size of the regex andnis proportional to the size of the string being searched. - rmp_
serde - MessagePack + Serde
- sha2
- An implementation of the SHA-2 cryptographic hash algorithms.
- shapelib
- slotmap
- slotmap
- sshkeys
- str
- Utilities for the
strprimitive type. - tempfile
- This is a library for creating temporary files and directories that are automatically deleted when no longer referenced (i.e., on drop).
- tera
- Tera
- termprogress
- thread
- Native threads.
- time
- Temporal quantification.
- timespec_
serde - toml
- A serde-compatible TOML-parsing library
- toml_de
- uds
- A unix domain sockets library that supports abstract addresses, fd-passing, SOCK_SEQPACKET sockets and more.
- unicode_
width - Determine displayed width of
charandstrtypes according to Unicode Standard Annex #11 and other portions of the Unicode standard. See the Rules for determining width section for the exact rules. - unix
- Platform-specific extensions to
stdfor Unix platforms. - vecdeque_
stableix - deque (double-ended queue) with stable element indices
- zcoord
- zipfile
- A library for reading and writing ZIP archives. ZIP is a format designed for cross-platform file “archiving”. That is, storing a collection of files in a single datastream to make them easier to share between computers. Additionally, ZIP is able to compress and encrypt files in its archives.
Macros§
- anyhow
- Construct an ad-hoc error from a string or existing non-
anyhowerror value. - chain
- Chain zero or more iterators together into one sequence.
- dbgc
- debug
- Logs a message at the debug level.
- define_
index_ type - Generate the boilerplate for a newtyped index struct, for use with
IndexVec. - 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 letexpressions. - if_let
- impl_
downcast - Adds downcasting support to traits that extend
downcast::Downcastby defining forwarding methods to the corresponding implementations onstd::any::Anyin the standard library. - impl_
for_ slotmap_ key - impl_
via_ ambassador - index_
vec - A macro equivalent to the stdlib’s
vec![], but producing anIndexVec. - info
- Logs a message at the info level.
- iproduct
- Create an iterator over the “cartesian product” of iterators.
- 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 - paste
- pos_
zip_ map - pos_
zip_ try_ map - regex
- Return a lazy static Regex checked at compilation time and built at first use.
- regex_
captures - Extract captured groups as a tuple of &str.
- serde_
with_ compat - Allows the use of serde for a compat struct
- 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§
- Abbrev
Presentation Layout - Access
Record - Record of acess for a player. Newtype prevents mutable access without invalidating old tokens and permissions check.
- Access
Token Info - Access
Token Report - Account
Id - Account
Name - Account
NotFound - Account
Record - Account
SshKey - Accounts
- Accounts
Guard - Acl
- AclEntry
- Alphanumeric
- Sample a
u8, uniformly distributed over ASCII letters and numbers: a-z, A-Z and 0-9. - Anyhow
Display - ApiPiece
OpArgs - Arc
- A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’.
- Array
Vec - A vector with a fixed capacity.
- Asset
UrlToken - Authorisation
- BTree
Map - An ordered map based on a B-Tree.
- BTree
Set - An ordered set based on a B-Tree.
- BadAsset
UrlToken - BufReader
- The
BufReader<R>struct adds buffering to any reader. - BufWriter
- Wraps a writer and buffers its output.
- Bundle
Meta - Child
- Representation of a running or exited child process.
- Circle
Outline - Circle
Shape Indicator - Client
- Client
Id - Client
Sequence - Colour
Spec - Command
- A process builder, providing fine-grained control over how a new process should be spawned.
- Committed
LogEntry - Compass
Angle - 0 = unrotated, +ve is anticlockwise, units of 45deg
- Condvar
- Condition variable (for async)
- Cooked
Stdout - Coordinate
Overflow - Data
- Data
Load Player - Debug
Reader - Dense
Slot Map - Dense slot map, storage with stable unique keys.
- Digest
Read - Digest
Write - Duration
- A
Durationtype to represent a span of time, typically used for system timeouts. - EffectiveACL
- EnumMap
- An enum mapping.
- Execute
Game Change Updates - FaceId
- Fake
RngSpec - Fake
Time Config - Fake
Time Spec - Fast
Split Id - Fd
- File
- An object providing access to an open file on the filesystem.
- Fixed
Token - Formatter
- Configuration for formatting.
- Frame
Reader - Frame
Writer - Future
Instant - Future
Instant OutOf Range - GLOBAL
- GOccults
- GPiece
- GPieces
- GPlayer
- Game
Being Destroyed - Game
Spec - Game
State - Generation
- Generic
Simple Shape - Global
- Global
Clock - Good
Item Name - HashMap
- A hash map implemented with quadratic probing and SIMD lookup.
- HashSet
- A hash set implemented as a
HashMapwhere the value is(). - Html
- HtmlLit
- HtmlStr
- IFast
Splits - IOccults
- IPiece
- Strange ownership and serialisation rules, like
OccultIlkOwningId - IPiece
Trait Obj - IPieces
- IPlayer
- Index
Map - A hash table where the iteration order of the key-value pairs is independent of the hash values of the keys.
- Index
Set - A hash set where the iteration order of the values is independent of their hash values.
- Index
Slice - A slice that only accepts indices of a specific type. Note that the intended
usage is as
IndexSlice<I, [T]>. - Index
Vec - A Vec that only accepts indices of a specific type.
- Instance
- Instance
Access Details - Instance
Bundles - Instance
Container - Instance
Guard - Instance
Name - Instance
Outer - Instance
Ref - Instance
Weak Ref - Instant
- A measurement of a monotonically nondecreasing clock.
Opaque and useful only with
Duration. - Internal
Logic Error - Invalid
Abbrev Presentation Layout - Invalid
Fake Time - Ipv4
Addr - An IPv4 address.
- Ipv6
Addr - An IPv6 address.
- IsHtml
Formatted - Item
Enquiry Data - Item
Spec - Json
String - Library
Enquiry Data - Links
Table - Loaded
Acl - LogEntry
- LogSpecification
- Immutable struct that defines which loglines are to be written, based on the module, the log level, and the text.
- Mgmt
Channel - Mgmt
Channel ForGame - Mgmt
Game Piece Info - Modifying
Pieces - Proof token that it is OK to modify the array
- Named
Temp File - A named temporary file.
- Nascent
Occultation - Notch
- Notches
- OccId
- Occult
IlkData - Occult
IlkId - Occult
IlkOwning Id - Does not
impl Drop. Don’t just drop it. - Occult
Ilks - Occult
View - Occultation
- Occultation
Views - Occulter
Rotation Checked - OldNew
- Ordered
Float - A wrapper around floats providing implementations of
Eq,Ord, andHash. - OsStr
- Borrowed reference to an OS string (see
OsString). - Owner
Occultation View - PLA
- PUOs_
Simple_ Modify - PathBuf
- An owned, mutable path (akin to
String). - PerPlayer
IdMap - PermSet
- Phantom
Data - Zero-sized type used to mark things that “act like” they own a
T. - Piece
Aliases - PieceId
- Piece
Label Loaded - Piece
Load Args - Piece
Occult - Piece
Render Instructions - Piece
Special Properties - Special handling instructions for this piece
- Piece
Trait Downcast Failed - Piece
Update - Pieces
Spec - Player
Access Unset - Player
Id - Player
NotFound - Player
Record - Player
Updates - Player
Updates Start Context - PosC
- PosOff
Table Error - Prepare
Updates Buffer - Prepared
Piece Image - Prepared
Piece State - Prepared
Piece Update General - Prepared
Update - Prepared
Update Entry_ Image - Prepared
Update Entry_ Piece - Private
Caller - Progress
Info - RawToken
- RawToken
Val - Read
Frame - Record
- RectC
- Rect
Outline - Rect
Shape Indicator - Regex
- A compiled regular expression for searching Unicode haystacks.
- Rendered
- Response
Writer - RngIs
Real - RngWrap
- SVGWidth
OrHeight Iter - An iterator over the variants of Self
- Server
Config - Server
Config Spec - Shapelib
Explicit1 - Should
SetZ Level - Drop this only on errors; don’t just forget it
- Show
Unocculted - Proof token.
- SigPipe
Writer - Simple
Common - Sparse
Secondary Map - Sparse secondary map, associate data with previously stored elements in a slot map.
- Spec
Depth - Spec
Loaded - Spec
Loaded Inert - Stable
Index VecDeque - Double-ended queue with stable indices
- Stdio
- Describes what to do with a standard I/O stream for a child process when
passed to the
stdin,stdout, andstderrmethods ofCommand. - Table
Permission Iter - An iterator over the variants of Self
- Table
Spec - Tera
- Main point of interaction in this library.
- Text
Options - Text
Options Spec - Thunk
- Time
IsReal - Time
Spec - TimedFd
- Timed
FdRead - Timed
FdWrite - Timestamp
- Timezone
- ToRecalculate
- Token
ByEmail - Token
Delivery Error - Token
Registry - Token
Revelation Key - Token
Revelation Value - Toml
Quote - Transmit
Update - TryFrom
IntError - The error type returned when a checked integral type conversion fails.
- Uid
- User identifier
- Unauthorised
- UniCase
- Case Insensitive wrapper of strings.
- Uniform
Occultation View - Unique
GenGen - Unix
Stream - A Unix stream socket.
- Unsupported
Colour Spec - UoDescription
- Update
Id - Url
- A parsed URL record.
- UrlOn
Stdout - UrlSpec
- VecDeque
- A double-ended queue implemented with a growable ring buffer.
- Visible
Angle Transform - Visible
Piece Id - Whole
Server Config - Wrapping
- Provides intentionally-wrapped arithmetic on
T. - Write
Frame - ZCoord
- ZLevel
- Pieces on top have higher values than ones
- ZipFile
- A struct for reading a zip file
Enums§
- Account
Scope - Accounts
Save Error - AggregatedIE
- ApiPiece
OpError - Asset
UrlKey - BigEndian
- Defines big-endian serialization.
- Cow
- A clone-on-write smart pointer.
- Either
- The enum
Eitherwith variantsLeftandRightis a general purpose sum type with two cases. - Either
OrBoth - Value that either holds a single A or B, or both.
- Error
Kind - A list specifying general categories of I/O error.
- Error
Signaled ViaUpdate - Explode
- Fatal
- IOccult
Ilk - Strange ownership and serialisation rules, like
OccultIlkOwningId - Inapplicable
- Infallible
- The error type for errors that can never happen.
- Internal
Error - Invalid
Scoped Name - IpAddr
- An IP address, either IPv4 or IPv6.
- LLE
- LLMI
- LOccult
Ilk - Library
Load Error - Link
Kind - Little
Endian - Defines little-endian serialization.
- MFVE
- Mgmt
Command - Mgmt
Error - Mgmt
Game Instruction - Mgmt
Game Response - Mgmt
Game Update Mode - Mgmt
Response - OOTG
- OccDisplacement
- OccKA
- OccKG
- Occultation
Kind Always Ok - Occultation
Kind General - OldNew
Index - OpOutcome
Thunk Generic - Ordering
- An
Orderingis the result of a comparison between two values. - Outline
- Packet
Frame Read Error - Packet
Frame Write Error - Path
Resolve Context - Path
Resolve Method - Piece
Angle - Piece
Angle Spec - Piece
Moveable - Piece
OpError Partially Processed - Piece
Update Op - Piece
Update Ops - Prepared
Update Entry - Presentation
Layout - PriOG
- PriOcculted
General - Progress
Update Mode - SVGProcessing
Error - SVGSize
Error - SVGWidth
OrHeight - Shape
- Shapelib
Config1 - Socket
Addr - An internet socket address, either IPv4 or IPv6.
- Spec
Error - Special
Client Rendering - SvSE
- Table
Permission - Table
Player Spec - UoKind
- Void
- The empty type for cases which can’t occur.
- What
Response ToClient Op - ZipError
- Error type for Zip
Constants§
- CLOCK_
MONOTONIC - CLOCK_
REALTIME - DAEMON_
STARTUP_ REPORT - DEFAULT_
CONFIG_ DIR - DEFAULT_
CONFIG_ LEAFNAME - DEFAULT_
EDGE_ WIDTH - DEFAULT_
SENDMAIL_ PROGRAM - DEFAULT_
SSH_ PROXY_ CMD - DEFAULT_
TABLE_ COLOUR - DEFAULT_
TABLE_ SIZE - EXIT_
DISASTER - EXIT_
NOTFOUND - EXIT_
SITUATION - EXIT_
SPACE - EXIT_
USAGE - HELD_
SURROUND_ COLOUR - HTML_
TEXT_ LABEL_ ELEM_ START - INVISIBLE_
EDGE_ SENSITIVE - LABEL_
FONT_ SIZE - LOG_
ENV_ VAR - MS
- NON_
ALPHANUMERIC - Everything that is not an ASCII letter or digit.
- SELECT_
SCALE - SELECT_
STROKE_ WIDTH - SSH_
PROXY_ SUBCMD - SVG_
FONT_ Y_ ADJUST_ OF_ FONT_ SIZE - Fudge factor
- SVG_
SCALE - SYNCH_
LOGENTRY_ PREFIX - TAU
- The full circle constant (τ)
Traits§
- Access
Id - Account
Name OrId - Any
- A trait to emulate dynamic typing.
- AsRawFd
- A trait to extract the raw file descriptor from an underlying object.
- Borrow
- A trait for borrowing data.
- Bounded
- Numbers which have upper and lower bounds
- BufRead
- A
BufReadis a type ofReader which has an internal buffer, allowing it to perform extra ways of reading. - ById
- Clamp
Table - Command
Ext - Unix-specific extensions to the
process::Commandbuilder. - Const
Default - Implements a compilation time default value for the implemented type.
- Constant
Time Eq - An
Eq-like trait that produces aChoiceinstead of abool. - Context
- Provides the
contextmethod forResult. - Debug
?formatting.- Debug
Ext - Debug
Identify - Deref
- Used for immutable dereferencing operations, like
*v. - Deref
Mut - Used for mutable dereferencing operations, like in
*v = 1;. - Deserialize
- A data structure that can be deserialized from any data format supported by Serde.
- Deserialize
Owned - 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
- Convenience wrapper trait covering functionality of cryptographic hash functions with fixed output size.
- Display
- Format trait for an empty format,
{}. - Downcast
- Supports conversion to
Any. Traits to be extended byimpl_downcast!must extendDowncast. - DynCast
Ext - Simplifies the use of the
DynCasttrait by abstracting away the difference between different ways of storing trait objects. - Enum
- Enum mapping type.
- Enum
Count - A trait for capturing the number of variants in Enum. This trait can be autoderived by
strum_macros. - Enum
Message - Associates additional pieces of information with an Enum. This can be
autoimplemented by deriving
EnumMessageand annotating your variants with#[strum(message="...")]. - Enum
Property EnumPropertyis 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 thestrum_macroscrate. Currently, the only string literals are supported in attributes, the other methods will be implemented as additional attribute types become stabilized.- Exit
Status Ext - Unix-specific extensions to
process::ExitStatusandExitStatusError. - FileExt
- Extension trait for
std::fs::Filewhich provides allocation, duplication and locking methods. - From
Primitive - A generic trait for converting a number to a value.
- FromStr
- Parse a value from a string
- Fused
Iterator - An iterator that always continues to yield
Nonewhen exhausted. - Hash
- A hashable type.
- Hasher
- A trait for hashing an arbitrary stream of bytes.
- Html
Format - Html
Format Ref - Html
Iterator Ext - IdFor
ById - Index
- Used for indexing operations (
container[index]) in immutable contexts. - Index
Mut - Used for indexing operations (
container[index]) in mutable contexts. - Index
VecIT Ext - Inert
Piece Trait - Into
Enum Iterator - This trait designates that an
Enumcan be iterated over. It can be auto generated usingstrum_macroson your behalf. - Into
RawFd - A trait to express the ability to consume an object and acquire ownership of its raw file descriptor.
- IoTry
Clone - IpAddress
- Itertools
- An
Iteratorblanket implementation that provides extra adaptors and methods. - KeyData
Ext - Extension trait for
slotmap::KeyData, providingget_idx_version. - Local
File Ext - Metadata
Ext - Unix-specific extensions to
fs::Metadata. - Mgmt
Bundle List Ext - Occultation
View Def - Open
Options Ext - Unix-specific extensions to
fs::OpenOptions. - Optionpiece_
specs Piece Label Ext - OrdExt
- OsStr
Ext - Platform-specific extensions to
OsStr. - Outline
Trait - Permissions
Ext - Unix-specific extensions to
fs::Permissions. - Piece
Base Trait - Piece
Spec - Piece
Trait - PieceX
Data - PieceX
Data State Ext - Player
Access Spec - PosPromote
- Read
- The
Readtrait allows for reading bytes from a source. - Read
Bytes Ext - Extends
Readwith methods for reading numbers. (Forstd::io.) - Read
Debug - ReadExt
- Result
Void ErrExt - Extensions to
Result<Void, E> - Result
Void Ext - Extensions to
Result<T, Void> - Rng
- An automatically-implemented extension trait on
RngCoreproviding high-level generic methods for sampling values and other convenience methods. - SeekExt
- Serialize
- A data structure that can be serialized into any data format supported by Serde.
- Serialize
Tuple - Returned from
Serializer::serialize_tuple. - Serializer
- A data format that can serialize any data structure supported by Serde.
- Simple
Piece Spec - Slice
Random - Extension trait on slices, providing random mutation and sampling methods.
- Slotmap
Sparse Secondary Entry Ext - Split
AtDelim - Stable
Index Offset - Types that can be used as an index for a Deque.
- Struct
Opt - A struct that is converted from command line arguments.
- Timed
- Timed
FdRead Write - Timed
Read - Timed
Write - ToPrimitive
- A generic trait for converting a value to a number.
- ToSocket
Addrs - A trait for objects which can be converted or resolved to one or more
SocketAddrvalues. - TryFrom
- Simple and safe type conversions that may fail in a controlled
way under some circumstances. It is the reciprocal of
TryInto. - TryInto
- An attempted conversion that consumes
self, which may or may not be expensive. - Tuple
OfLink Kind Refstr Ext - Unauthorised
Instance RefA Ext - VecPiece
IdPiece Update OpsExt - VecTExt
- Write
- A trait for objects which are byte-oriented sinks.
- Write
Bytes Ext - Extends
Writewith methods for writing numbers. (Forstd::io.) - Write
Debug - _
- A trait for writing or formatting into Unicode-accepting buffers or streams.
- anyhow
Error Ext
Functions§
- api_
op_ set_ z - Prepare to set the z level of gpc to z
- cast
- Cast from one machine scalar to another.
- chain
- Takes two iterables and creates a new iterator over both in sequence.
- client_
periodic_ expiry - clock_
gettime - Get the time of the specified clock, (see clock_gettime(2)).
- config
- consistency_
check - create_
occultation - dbgc_
helper - default
- default_
edge_ width - die_
cooldown_ path - 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 - is_
default - keydata_
extract - Underlying extraction function. Fails rather than panicing.
- load_
accounts - load_
games - 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.
- monospace_
font - occultation_
notify_ update_ image - parse_
fixed_ hex - parse_
slice_ hex - percent_
decode_ str - Percent-decode the given string.
- piece_
make_ heavy - 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_ general - recalculate_
occultation_ piece - record_
token - remove_
occultation - repeat_
with - Creates a new iterator that repeats elements of type
Aendlessly by applying the provided closure, the repeater,F: FnMut() -> A. - 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_
parse_ size - 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.
thread_rng().gen::<i32>(), or cached locally, e.g.let mut rng = thread_rng();. Invoked by theDefaulttrait, makingThreadRng::default()equivalent. - timestring_
abbreviate - toml_
merge - unreachable
- A safe version of
intrinsincs::unreachable. - usvg_
default_ args - utf8_
percent_ encode - Percent-encode the UTF-8 encoding of the given string.
- vpiece_
decode - xxx
- zip_eq
- Iterate
iandjin lock step.
Type Aliases§
- AE
- APOE
- AS
- ActualI
Pieces - Atomic
Bool - A boolean type which can be safely shared between threads.
- Authorisation
Superuser - Bundles
Guard - Client
Mgmt Channel - Colour
- Coord
- ESVU
- Face
Colour Specs - GPlayers
- Games
Guard - Games
Table - IE
- IOI
- Ia
- LOI
- MC
- ME
- MGI
- MGR
- MR
- Mgmt
Bundle List - Multigrab
Qty - Mutex
- A mutual exclusion primitive useful for protecting shared data
- Mutex
Guard - An RAII implementation of a “scoped lock” of a mutex. When this structure is dropped (falls out of scope), the lock will be unlocked.
- NonZero
Usize - A
usizethat is known not to equal zero. - Notch
Number - OccK
- Occult
IlkName - Occultation
Kind - OpHook
Thunk - OpOutcome
Thunk - POEPP
- PUE
- PUE_P
- PUFOS
- PUM
- PUO
- PUOs
- Parse
Error - A type alias for
Infallible. - Piece
Spec Loaded Occultable - Piece
Update From OpSimple - Piece
Update Ops_ PerPlayer - Piece
Update Result - PieceX
Data State - Player
Updates Log - Pos
- Prepared
Piece Update - PriOcculted
- RawAcl
- RawClient
Sequence - RawFace
Id - RawFd
- Raw file descriptors.
- RawStdout
- Rect
- Region
- RwLock
- A reader-writer lock
- RwLock
Read Guard - RAII structure used to release the shared read access of a lock when dropped.
- RwLock
Write Guard - RAII structure used to release the exclusive write access of a lock when dropped.
- Secondary
Slot Map - Sha512
- SHA-512 hasher.
- Sha512_
256 - SHA-512/256 hasher.
- Simple
Shape - Some
Unprepared Updates - SpE
- Startup
Error - SvgAttrs
- SvgData
- SvgE
- Timed
FdReader - Timed
FdWriter - Token
Table - Unprepared
Updates - UoKey
- Update
From OpComplex - Visible
Piece Angle - WRC
Attribute Macros§
- dyn_
upcast - enum_
dispatch - Annotating a trait or enum definition with an
#[enum_dispatch]attribute will register it with the enum_dispatch library, allowing it to be used to generate impl blocks elsewhere. - ext
- See crate docs for more info.
- throws
Derive Macros§
- AsRef
Str - Converts enum variants to
&'static str. - Const
Default - Derives an implementation for the
ConstDefaulttrait. - Debug
- Derive macro generating an impl of the trait
Debug. - Deserialize
- Deserialize
From Str - Deserialize value by using its
FromStrimplementation - Educe
- Enum
- Derive macro generating an implementation of trait
Enum. - Enum
Count - Add a constant
usizeequal to the number of variants. - Enum
Discriminants - Generate a new type with only the discriminant names.
- Enum
Iter - Creates a new type that iterates of the variants of an enum.
- Enum
Message - Add a verbose message to an enum variant.
- Enum
Property - Add custom properties to enum variants.
- Enum
String - Converts strings to enum variants based on their name.
- Error
- From
Primitive - Derives
num_traits::FromPrimitivefor simple enums and newtypes. - Hash
- Derive macro generating an impl of the trait
Hash. - Into
Owned - Into
Static Str - Implements
From<MyEnum> for &'static stron an enum. - Serialize
- Serialize
Display - Serialize value by using it’s
Displayimplementation - Struct
Opt - Generates the
StructOptimpl. - ToPrimitive
- Derives
num_traits::ToPrimitivefor simple enums and newtypes.