macro_rules! vector {
    () => { ... };
    ( $($x:expr),* ) => { ... };
    ( $($x:expr ,)* ) => { ... };
}
Expand description

Construct a vector from a sequence of elements.

Examples

assert_eq!(
  vector![1, 2, 3],
  Vector::from(vec![1, 2, 3])
);