Crate eryon_core

Crate eryon_core 

Source
Expand description

§eryon-core

This crate implements the core musical primitives and utilities for the eryon framework.

Re-exports§

pub use rand;
pub use rand_distr;
pub use rstmt;
pub use super::area::*;

Modules§

error
this module implements the core error type for the crate
ops
this module implements additional operational traits used throughout the crate
prelude
state
the state module implements the State type and its associated traits and types
traits
this module define various traits common to the crate
types
this module defines the core types for the eryon framework
utils

Macros§

rulemap
a macro to create a HashMap of rules for a Turing machine. The macro takes a list of rules in the form of

Structs§

DirectionIter
An iterator over the variants of Direction
Head
The Head is formally defined to be a 2-tuple consisting of a state / symbol pair.
LearnedRule
PowerIter
An iterator over the variants of Power
State
State is a generalized state implementation, representing the state of a system or object.
Tail
The Tail is a 3-tuple containing the direction, state, and symbol that an actor is instructed to execute whenever it assumes the head configuration assigned to the tail.

Enums§

Direction
Direction enumerates the various directions a head can move, namely: left, right, and stay.
Error
The Error type enumerates the core errors that are handled by the framework
Power

Traits§

Decrement
DecrementMut
Execute
A trait denoting the ability to execute a given operation, transaction, etc.
ExecuteMut
Increment
IncrementMut
IntoDirection
IntoDirection is a simple conversion trait for consuming types to turn into a Direction.
Numerical
PercentDifference
a trait for computing the percent difference between two values where the caller is considered the original value
RawState
RawState is a trait describing objects capable of being used as states in our library. The trait contains a single associated trait, the context, or inner value of the state.
Scalar
ScalarComplex
Shuffle
A trait for shuffling a collection
Symbolic
Transform

Type Aliases§

Result
A type alias for a Result with a custom error type (Error)