AI-assisted — how our quizzes are made
Move semantics, borrowing rules, closure capture modes, and common ownership patterns including Rc, Arc, Cow, and interior mutability
36 questionsLifetime annotations, elision rules, complex lifetime cases, variance (covariance/contravariance/invariance), higher-ranked trait bounds, static lifetime, and lifetime bounds
34 questionsTrait objects vs generics, associated types, trait bounds, marker traits, coherence rules, default implementations, supertraits, and object safety
Generic functions, structs, enums, type parameters, const generics, PhantomData, newtype pattern, type-level programming, inference, and generic trait implementations
30 questionsResult type, Option, the ? operator, error propagation, custom error types, and error handling patterns
30 questionsUnit tests, integration tests, doc tests, benchmarks
30 questionsDerive macros, custom implementations, formats
30 questionsSend and Sync traits, Arc, Mutex, RwLock, channels (mpsc), async/await, Tokio runtime, async traits, and concurrent data structures.
30 questionsDeclarative macros (macro_rules!), procedural macros (derive, attribute, function-like), hygiene, and common macro patterns.
30 questionsWhat is a generic function in Rust?
A function that accepts any type at runtime via dynamic dispatch
A function parameterised by one or more type parameters resolved at compile time via monomorphisation
A function that uses trait objects internally
A function imported from a generic module
What does cargo tarpaulin do?
Runs property-based tests
Measures test code coverage for Rust projects
Generates test stubs from function signatures
Runs tests in a sandboxed environment