Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Untitled
a guest
Sep 26th, 2018
76
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
text
0.20 KB
| None
|
0
0
raw
download
clone
embed
print
report
use std::mem;
fn main() {
let a = 0.5;
let b = 7.0;
let f = |x: f64| x*a;
let g = |x: f64| x*a + b;
println!("{}", mem::size_of_val(&f));
println!("{}", mem::size_of_val(&g));
}
Add Comment
Please,
Sign In
to add comment
Public Pastes
Write script for All Union and Parts on Roblo...
Lua | 45 sec ago | 1.96 KB
Create Lightmap UV
C# | 33 min ago | 1.47 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 46 min ago | 0.39 KB
amiberry wbx
Make | 1 hour ago | 11.15 KB
Untitled
Java | 1 hour ago | 0.43 KB
Untitled
CSS | 1 hour ago | 18.83 KB
boom.lua
Lua | 2 hours ago | 1.80 KB
EasyButton Control rev_01
Arduino | 2 hours ago | 2.63 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!