Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jan 17th, 2019
73
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.19 KB
| None
|
0
0
raw
download
clone
embed
print
report
use std::ops::{Index, IndexMut};
fn main() {
let mut v = vec![1, 2, 3];
let item = v.index(1);
let item2 = v.index(2);
// let item3 = v.index_mut(3);
println!("{}", item);
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
Mjolnir
YAML | 9 min ago | 1.78 KB
Untitled
YAML | 14 min ago | 160.12 KB
# tk_Gradient_Life.py
Python | 33 min ago | 1.39 KB
Mark of the Beast
YAML | 44 min ago | 1.19 KB
C++ string split
C++ | 49 min ago | 2.11 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 1 hour ago | 0.39 KB
Stay protected, Join the tour today!
JavaScript | 1 hour ago | 0.13 KB
snowybot completed robo manual 10fold upda...
JavaScript | 2 hours ago | 1.87 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!