Crate jyafn Copy item path Source pub use op::Op ;
pub use const::Const ;
const Constant values in the computational graph. Constants need to have a type and a binary
representation as a 64-bit peice of data. extension An extension is a wrapper over a shared object comforming to a given interface. layout This module has the main structs that control how information is sent into functions
and read from functions in a safe way. mapping Mappings are key-value pairs that can be randomly accessed in functions. These
mappings are be backed by a plugable storage. op Implementation of all the operations allowed in Graph
s. Just the subset of safe
operations are exposed in the public interface. pfunc Pure functions that operate on raw jyafn data.resource A Resource
is an amount of data associated with “methods”, much like an object in
OO languages, but simpler. size Utilities for dealing with memory sizes without fantastically messing up the units. utils Utilities for this crate. impl_get_size Implements Op::get_size
for a given type that already implements GetSize
. impl_is_eq Implements Op::is_eq
for a given type. impl_op Has the same effect of impl_is_eq
and impl_get_size
. Use this if you don’t
care about creating a custom implementation for either of these functionalities. layout Builds a Layout
usng the jyafn layout display notation. safe_method A safe convenience macro for method call. This macro does three things for you: struct Builds a Struct
layout out of a collection of keys and values. struct_field Builds a Struct
field, given a key and a value layout. ContextStack A stack of contexts for a given error. FnError The error type returned from the compiled function. If you need to create a new error
from your code, use String::into
. Function A function is a compiled representation of a computational graph, that can be called
as a regular function. FunctionData All the data that a Function
holds on to. Graph A computational graph. IndexedList Node A node of the computational graph. Error The error type for this crate. Ref A reference to a value in a graph. Type The primitive types of data that can be represented in the computational graph. Context An extension for Result<T, Error>
providing a way to give context to errors. RawFn The function signature exposed from jyafn.