Advanced Rust
Q66 / 100

What is specialization in Rust?

Correct! Well done.

Incorrect.

The correct answer is B) An unstable feature allowing more specific trait implementations to override more general ones, enabling performance optimizations

B

Correct Answer

An unstable feature allowing more specific trait implementations to override more general ones, enabling performance optimizations

Explanation

Specialization (RFC 1210, nightly-only) allows a blanket impl to be overridden by a more specific one. Used by the standard library (e.g., ToString being faster for types that impl Display).

Progress
66/100