Module agnes::apply [] [src]

Framework for providing and applying functions to data within the agnes data structures in a consistent, type-coherent manner.

The ElemFn trait provides a framework for functions that apply to a single element in the data structure.

The FieldFn trait provides a framework for functions that apply to a field (column) of data in the data structure.

Structs

FieldIndexSelector

A data selector using both a data field identifier and the data index. Used to select a specific element in a two-dimensional data structs (with both fields and elements) along with a FieldFn.

FieldSelector

A data selector using only a field identifier. Used to select a specific field to be passed to FieldFn.

FilterFnBoolean

FieldFn function for finding an index set of boolean values of a field that match a predicate.

FilterFnFloat

FieldFn function for finding an index set of floating-point values of a field that match a predicate.

FilterFnSigned

FieldFn function for finding an index set of signed integer values of a field that match a predicate.

FilterFnText

FieldFn function for finding an index set of text values of a field that match a predicate.

FilterFnUnsigned

FieldFn function for finding an index set of unsigned integer values of a field that match a predicate.

IndexSelector

A data selector unsing only a data index. Used to select a specific element among a single column / field / vector for use with an ElemFn.

MatchesAllFnBoolean

FieldFn function for matching all boolean values of a field against a predicate.

MatchesAllFnFloat

FieldFn function for matching all floating-point values of a field against a predicate.

MatchesAllFnSigned

FieldFn function for matching all signed integer values of a field against a predicate.

MatchesAllFnText

FieldFn function for matching all text values of a field against a predicate.

MatchesAllFnUnsigned

FieldFn function for matching all unsigned integer values of a field against a predicate.

MatchesFnBoolean

ElemFn function for matching boolean values.

MatchesFnFloat

ElemFn function for matching floating-point values.

MatchesFnSigned

ElemFn function for matching signed integer values.

MatchesFnText

ElemFn function for matching text values.

MatchesFnUnsigned

ElemFn function for matching unsigned integer values.

NilSelector

A data selector with no data. Used to select an entire field with FieldFn when a data structure only has a single field's data.

SortOrderFn

FieldFn function struct for retrieving the sort permutation order for a field.

Traits

ApplyToElem

Trait implemented by data structures which wish to be able to support ElemFns (type-dependent functions that apply to a specific element).

ApplyToField

Trait implemented by data structures which wish to be able to support FieldFns (type-dependent functions that apply to an entire field).

ApplyToField2

Trait implemented by pairs of data structures which wish to be abel to support Field2Fns (type-dependent functions that apply to fields from two data structures simultaneously).

DataIndex

Trait implemented by data structures that represent a single column / vector / field of data.

ElemFn

Trait for a type-dependent function that applies to a specific element.

Field2Fn

Trait for a type-dependent function that applies to a pair of fields.

FieldFn

Trait for a type-dependent function that applies to a single field.

GetFilter

Helper trait / implementations for finding an index set of values in a field that match a predicate. Returns a vector of indices of all elements in the field that pass the predicate.

Matches

Helper trait / implementations for matching a value. Returns true if the selected element matches the provided target value.

MatchesAll

Helper trait / implementations for matching a predicate to a field. Returns true if the provided predicate returns true for all elements in the field.

Selector

Data selector for the ApplyToElem and ApplyToField methods.

SortOrderBy

Helper trait / implementations retrieving the sort permutation for a field.