imbl

Macro vector

Source
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])
);