Skip to content
Cracked
AI
Problems
Tracks
Roadmap
Articles
Leaderboard
Search
Ctrl K
Mode:
Rust
PyTorch
JAX
Python
Rust
C++
PyTorch
JAX
Python
Rust
C++
Log in
Sign up
Problems
Tracks
Articles
Roadmap
Leaderboard
Set up the runtime
Log in
Sign up
PyTorch
JAX
Python
Rust
C++
Radio
We can't find the internet
Attempting to reconnect
Something went wrong!
Attempting to reconnect
Closures practice problems in Rust
Search problems
Difficulty:
Easy
Medium
Hard
Category:
Primitives
Framework
End-to-End
Research
Tag:
closures
clippy
traits
ownership
iterators
unsafe
borrowing
concurrency
strings
performance
drop
async
collections
errors
lifetimes
api-design
macros
option
slices
allocation
E0382
generics
edition-2024
macro-rules
ffi
metaprogramming
rc
structs
match
refcell
enums
modules
patterns
e0502
idiom
trait-objects
futures
interior-mutability
panic
raw-pointers
clone
dyn
E0277
guards
Mutex
parsing
smart-pointers
soundness
atomics
capstone
derive
determinism
E0507
executor
floats
hashmap
layout
moves
newtype
ordering
Show more tags
Sort:
Title
Easiest first
Hardest first
Recently added
Clear filters
Showing 15 of 15
Status
Title
Difficulty
Category
Tags
Box<dyn Trait>: trait objects, DSTs and dynamic dispatch
Medium
Primitives
traits
trait-objects
dyn
dispatch
closures
dst
Closures 101: build a pipeline of boxed closures
Easy
Primitives
closures
trait-objects
type-inference
iterators
boxing
Closures hold their borrows
Medium
Primitives
borrowing
closures
e0501
e0500
rfc-2229
Fn, FnMut, FnOnce: the closure hierarchy
Medium
Primitives
closures
traits
fn-traits
borrowing
generics
Folding an AST: separating traversal from action
Hard
End-to-End
enums
recursion
box
closures
generics
e0072
compilers
from_fn and successors: iterators without writing a struct
Easy
Primitives
iterators
closures
from-fn
successors
std
Laziness: prove the pipeline interleaves
Easy
Primitives
iterators
laziness
closures
refcell
clippy
move closures: why the compiler forces your hand
Easy
Primitives
concurrency
threads
closures
move
E0373
E0382
move: when the closure must own its captures
Medium
Primitives
closures
move
ownership
trait-objects
lifetimes
`poll_fn`: a future from a closure
Easy
Primitives
async
poll-fn
closures
futures
clippy
Returning impl Trait, and what edition 2024 changed
Hard
Primitives
impl-Trait
RPIT
lifetimes
edition-2024
closures
dyn
The FnMut borrow gauntlet: a log you can read afterwards
Medium
Primitives
closures
fnmut
borrowing
e0502
iterators
Trait objects and lifetimes: Box<dyn Trait + 'a>
Hard
Primitives
lifetimes
trait-objects
closures
boxed
hrtb
dyn
`T: 'static` in practice — a type-erased handler registry
Hard
End-to-End
lifetimes
static
trait-objects
closures
E0310
E0521
unsafe impl Send, and the disjoint-capture trap
Hard
Framework
concurrency
unsafe
Send
raw-pointers
RFC2229
E0277
closures