Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn main() {
- let v1 = vec![1, 2, 3];
- let v2 = vec![2, 3, 4];
- let vec1 = Vector::<i32>::from_slice(&v1);
- let vec2 = Vector::<i32>::from_slice(&v2);
- // We have to explictly clone our Vector object at present.
- let vec3 = vec1.clone() + vec2.clone();
- println!("{:?}", vec1);
- println!("{:?}", vec2);
- println!("{:?}", vec3);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement