Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Jun 21st, 2018
104
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.18 KB
| None
|
0
0
raw
download
clone
embed
print
report
struct Foo {
y: f32,
}
impl Foo {
fn get_y(&mut self) -> &mut f32 {
&mut self.y
}
}
fn main() {
let mut foo = Foo { y: 0.0 };
println!("{}", foo.get_y());
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
💲 G2A.com Free Gift Card Guide Mar 2024 💲
GetText | 19 min ago | 0.44 KB
Untitled
Rust | 36 min ago | 2.35 KB
Untitled
Java | 40 min ago | 1.15 KB
Untitled
JavaScript | 1 hour ago | 0.08 KB
ResourceGatheringRPG Player Controller Script
GDScript | 1 hour ago | 1.22 KB
Untitled
JavaScript | 1 hour ago | 0.58 KB
Untitled
JavaScript | 1 hour ago | 0.58 KB
data879
JSON | 1 hour ago | 0.64 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!