Key question
How do I control data ownership and handle failures in a compiled program?
Check your understanding
Find an example, an application and a limit. Explain the concept without using its name, then compare your explanation with a primary source.
Loading your learning…
Claims to examine
Making ownership and recoverable failure explicit helps a caller understand how a small program uses data and handles expected errors.
Follow a learning route
How do I control data ownership and handle failures in a compiled program?
Learn ownership, borrowing and explicit errors through a small Rust file tool.
Reading connections
The Rust Programming Language: What Is Ownership?
The Rust Programming Language: References and Borrowing
The Rust Programming Language: The Slice Type
Rust standard library: str
The Rust Programming Language: Recoverable Errors with Result
The Rust Programming Language: The match Control Flow Construct
The Rust Programming Language: Accepting Command Line Arguments
The Rust Programming Language: Reading a File