[][src]Macro literal::set

macro_rules! set {
    ($( $item:expr ),* $(,)?) => { ... };
}

Set literal with .into() for each element.

Examples

use std::collections::{HashSet,BTreeSet};
use literal::{set,SetLiteral};

let a: HashSet<String> = set!{"x", "y"};

let a: BTreeSet<String> = set!{"x", "y"};