[][src]Macro iocutil::fs

macro_rules! fs {
    ($from:expr => $to:expr) => { ... };
    ($from:expr =>) => { ... };
    (=> $to:expr) => { ... };
}

first submission search modifier macro

Example

use iocutil::prelude::*;

let f = day!(2019, 11, 01).unwrap();
let t = day!(2019, 11, 02).unwrap();
let fs1 = fs!(f => t);
assert_eq!(fs1.as_str(), "(fs:2019-11-01T00:00:00+ AND fs:2019-11-02T00:00:00-)");

let fs2 = fs!(f =>);
assert_eq!(fs2.as_str(), "fs:2019-11-01T00:00:00+");

let fs3 = fs!(=> t);
assert_eq!(fs3.as_str(), "fs:2019-11-02T00:00:00-");

let for_a_week = fs!(at!(1, weeks ago) =>);