Fltrs

Easy to define filters for querying lists. Fltrs has no dependencies!
Overview
Fltrs want to support creating easy, fast and expandable filters for iterable things (like Vec, Array, Map, Set, ...) in rust. A filter is created based on an input string (query). This has particular advantages if the filter is created at runtime, i.e. in a GUI or command line tool (CLI).
Extensions:
It is possible, to expand the filter/query to your own needs:
- create your own operator
- create a converter for the filter Value (e.g.: conversion of units).
You can find examples on the Query builder page.
Examples:
use query;
let result: =
.into_iter
.filter
.collect;
assert_eq!;
use query;
let result: =
.into_iter
.filter
.collect;
assert_eq!;
Option queries:
use query;
let result: =
.into_iter
.filter
.collect;
assert_eq!;
Nested and Not queries:
use query;
let result: =
.into_iter
.filter
.collect;
assert_eq!;
use query;
let result: =
.into_iter
.filter
.collect;
assert_eq!;
Fltrs supported queries on structs too.
This is possible, if the struct implement the trait: [PathResolver].
use ;
let result: =
.into_iter
.filter
.collect;
assert_eq!;