Todos los libros

Profesional

Apps Acerca de Coach Iniciar sesión Empezar a leer

Computer Science · Glosario

¿Qué es Borrow checker?

Definition 6.6 University Computer Science — Year 2 · Capítulo 6 — Rust: Ownership and Borrowing

The borrow checker is the part of the Rust compiler that checks, for every function, that each value is used only while owned and not moved, and that the borrowing rule holds at every point, using the types of the function’s parameters and results and not the bodies of the functions it calls.

The borrowing rule, for the borrows in use at one point of the program. Two writers, like a writer and a reader, are refused: .
The borrowing rule, for the borrows in use at one point of the program. Two writers, like a writer and a reader, are refused: Output 6.7.
Leer en el capítulo →