Crate tool[][src]

rustool

Personal toolbox for my Rust projects

Using rustool

Simply add the following to your Cargo.toml file:

[dependencies]
rustool = "*" // replace * by the latest version of the crate

Re-exports

pub use crate::core::*;

Modules

core

Main functionalities.

Macros

addjs

Add **kwargs to json map.

debug

Alias for debug logs.

error

Alias for error logs.

info

Alias for info logs.

log_init

Macro for the function to initialize the logs for default usage.

newjs

Create new json map from **kwargs.

trace

Alias for trace logs.

warn

Alias for warn logs.

writejs

Write json map to file.

Traits

SuperScalar

Trait that extends Scalar to create integer matrices like float matrices. Sometimes some functions that should be accessible to usize are not usable by Scalar, this type should help on using matrix with usize. It might be incomplete depending on your usage, this must be improved.

Type Definitions

List

Type alias for RowDVector. The matrix has 1 row and X columns.

Slice

Type alias to define a slice of the size of its matrix.

Unit

Type alias for UnitVector3. The matrix has 3 rows and 1 column.

Vector

Type alias for Vector3. The matrix has 3 rows and 1 column.

Vectors

Type alias for Matrix3xX. The matrix has 3 rows and X columns.