[][src]Macro graphplan::hashset

macro_rules! hashset {
    (@single $($x:tt)*) => { ... };
    (@count $($rest:expr),*) => { ... };
    ($($key:expr,)+) => { ... };
    ($($key:expr),*) => { ... };
}

Create a HashSet from a list of elements. Implementation copied from the maplit library https://github.com/bluss/maplit

Example

#[macro_use] extern crate graphplan;

let set = hashset!{"a", "b"};
assert!(set.contains("a"));
assert!(set.contains("b"));
assert!(!set.contains("c"));