Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jun 21st, 2018
74
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.22 KB
| None
|
0
0
raw
download
clone
embed
print
report
struct Test {
y: f32
}
impl Test {
fn get_y(&mut self) -> &mut f32 {
&mut self.y
}
}
fn main() {
let mut test = Test { y: 100.0 };
let y = test.get_y();
println!("y: {:?}", y);
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 8 min ago | 0.39 KB
boom.lua
Lua | 49 min ago | 1.80 KB
EasyButton Control rev_01
Arduino | 58 min ago | 2.63 KB
Custom PDF Viewer Block in Articulate Rise JS...
JavaScript | 1 hour ago | 0.09 KB
Pastebin.ai - #1 pastebin alternative
PHP | 1 hour ago | 0.84 KB
Receptor_RF_433MHz
MPASM | 2 hours ago | 10.04 KB
Transmisor_RF_433MHz
MPASM | 2 hours ago | 7.19 KB
[JS] YOUTUBE MP3 DOWNLOADER
JavaScript | 2 hours ago | 1.79 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!