msf
Memory safety, ownership, borrowing, lifetimes.
Load with: use msf
Quick example
use msf
result = msfon("value")
prn(result)
Functions
Ownership types
msfon(v)
Performs the operation. Takes v.
Borrow checking
msfbo(o, m)
Performs the operation. Takes o, m.
msfbr(b)
Performs the operation. Takes b.
Reference counting (shared ownership)
msfrc(v)
Performs the operation. Takes v.
msfr0(r)
Performs the operation. Takes r.
msfr1(r)
Performs the operation. Takes r.
Arc (atomic reference counting for thread safety)
msfar(v)
Performs the operation. Takes v.
Box (heap allocation)
msfbo(v)
Performs the operation. Takes v.
msfbg(b)
Performs the operation. Takes b.
msfbs(b, v)
Performs the operation. Takes b, v.
msfbd(b)
Performs the operation. Takes b.
Null pointer optimization
msfop(v)
Opens a connection or resource. Takes v.
msfpn()
Performs the operation.
msfpu(o)
Performs the operation. Takes o.
msfpo(o, d)
Performs the operation. Takes o, d.
msfpm(o, fn)
Performs the operation. Takes o, fn.
Result type for error handling
msfre(v)
Performs the operation. Takes v.
msfer(e)
Performs the operation. Takes e.
msfru(r)
Runs. Takes r.
msfro(r, d)
Performs the operation. Takes r, d.
msfrm(r, fn)
Removes an item. Takes r, fn.
Lifetime tracking
msfln(n)
Performs the operation. Takes n.
Move semantics
msfmv(v)
Performs the operation. Takes v.
msfm0(m)
Performs the operation. Takes m.
Cell (interior mutability)
msfcl(v)
Closes or clears. Takes v.
RefCell (runtime borrow checking)
msfr2(v)
Performs the operation. Takes v.
Drop trait simulation
msfdr(o, fn)
Performs the operation. Takes o, fn.
msfd0(o)
Performs the operation. Takes o.
Memory leak detection
msflk()
Performs the operation.
Scoped guards
msfgu(r, fn)
Performs the operation. Takes r, fn.
msfgf(g)
Performs the operation. Takes g.
RAII pattern
msfra(a, r)
Performs the operation. Takes a, r.
Pin (guarantee memory location doesn't change)
msfpi(v)
Performs the operation. Takes v.
Notes
- Metasploit-style exploit framework helpers. Use only on systems you own.