Expand description
Core data structures and algorithms used throughout Fyrox.
Some of them can be useful separately outside the engine.
Re-exports§
pub use sstorage::ImmutableString;
pub use arrayvec;
pub use byteorder;
pub use nalgebra as algebra;
pub use num_traits;
pub use parking_lot;
pub use rand;
pub use uuid;
pub use futures;
pub use instant;
pub use notify;
pub use type_traits::prelude::*;
Modules§
- color
- color_
gradient - early
- 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
- numeric_
range - pool
- A generational arena - a contiguous growable array type which allows removing from the middle without shifting and therefore without invalidating other indices.
- quadtree
- rectpack
- reflect
- Runtime reflection
- sparse
- sstorage
- Immutable string + immutable string storage. See docs of
ImmutableString
andImmutableStringStorage
for more info. - task
- type_
traits - 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§
Traits§
- Downcast
- A simple trait for downcasting through
Any
trait. - Name
Provider - A trait for entities that have name.
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()
. - 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.