Expand description
Core data structures and algorithms used throughout Fyrox.
Some of them can be useful separately outside the engine.
Modules§
- algebra
- nalgebra
- arrayvec
- arrayvec provides the types
ArrayVec
andArrayString
: array-backed vector and string types, which store their contents inline. - byteorder
- This crate provides convenience methods for encoding and decoding numbers in either big-endian or little-endian order.
- color
- color_
gradient - early
- futures
- Abstractions for asynchronous programming.
- instant
- io
- log
- Simple logger. By default, it writes in the console only. To enable logging into a file, call
Log::set_file_name
somewhere in yourmain
function. - math
- net
- notify
- Cross-platform file system notification library
- num_
traits - Numeric traits for generic mathematics
- numeric_
range - parking_
lot - This library provides implementations of
Mutex
,RwLock
,Condvar
andOnce
that are smaller, faster and more flexible than those in the Rust standard library. It also provides aReentrantMutex
type. - pool
- A generational arena - a contiguous growable array type which allows removing from the middle without shifting and therefore without invalidating other indices.
- quadtree
- rand
- Utilities for random number generation
- rectpack
- reflect
- Runtime reflection
- sparse
- sstorage
- Immutable string + immutable string storage. See docs of
ImmutableString
andImmutableStringStorage
for more info. - task
- type_
traits - uuid
- Generate and parse universally unique identifiers (UUIDs).
- variable
- A wrapper for a variable that hold additional flag that tells that initial value was changed in runtime.
- visitor
- Visitor is a tree-based serializer/deserializer.
- watcher
- Resource watcher allows you to track changed resources and “tell” resource manager to reload them.
Macros§
- blank_
reflect - define_
is_ as - Defines as_(variant), as_mut_(variant) and is_(variant) methods.
- delegate_
reflect - err
- impl_
component_ provider - Implements
ComponentProvider::query_component_ref
andComponentProvider::query_component_mut
in a much shorter way. - info
- newtype_
reflect - ok_
or_ break - ok_
or_ continue - ok_
or_ return - some_
or_ break - some_
or_ continue - some_
or_ return - stub_
uuid_ provider - uuid
- Parse
Uuid
s from string literals at compile time. - uuid_
provider - warn
Structs§
- BiDir
Hash Map - Immutable
String - Immutable string is a string with constant content. Immutability gives some nice properties:
- Phantom
Data Send Sync - Uuid
- A Universally Unique Identifier (UUID).
Traits§
- Component
Provider - Component provider provides dynamic access to inner components of an object by their type id.
- Downcast
- A simple trait for downcasting through
Any
trait. - Name
Provider - A trait for entities that have name.
- Type
Uuid Provider - A trait for an entity that has unique type identifier.
Functions§
- append_
extension - Appends specified extension to the path.
- array_
as_ u8_ slice - “Transmutes” array of any sized type to a slice of bytes.
- array_
as_ u8_ slice_ mut - “Transmutes” array of any sized type to a slice of bytes.
- cmp_
strings_ case_ insensitive - Compares two strings using case-insensitive comparison. This function does not allocate any
any memory and significantly faster than
a.to_lowercase() == b.to_lowercase()
. - combine_
uuids - find_
by_ name_ mut - Tries to find an entity by its name in a series of entities produced by an iterator.
- find_
by_ name_ ref - Tries to find an entity by its name in a series of entities produced by an iterator.
- hash_
as_ bytes - Performs hashing of a sized value by interpreting it as raw memory.
- hash_
combine - make_
pretty_ type_ name - make_
relative_ path - Strip working directory from file name. The function may fail for one main reason - input path is not valid, does not exist, or there is some other issues with it.
- replace_
slashes - Utility function that replaces back slashes \ to forward /. Internally, it converts the input
path to string (lossy - see
Path::to_string_lossy
) and replaces the slashes in the string. Finally, it converts the string to the PathBuf and returns it. This method is intended to be used only for paths, that does not contain non-unicode characters. - swap_
hash_ map_ entries - Swaps the content of two hash map entries.
- swap_
hash_ map_ entry - Swaps the content of a hash map entry with the content of an
Option
. - transmute_
slice - “Transmutes” array of any sized type to a slice of some other type.
- transmute_
vec_ as_ bytes - Takes a vector of trivially-copyable values and turns it into a vector of bytes.
- value_
as_ u8_ slice - “Transmutes” value of any sized type to a slice of bytes.
Derive Macros§
- Component
Provider - Implements
ComponentProvider
trait - Type
Uuid Provider - Implements
TypeUuidProvider
trait