Packt
Memory Safety and Structuring Programs
Packt

Memory Safety and Structuring Programs

本课程是 Learn to Code with Rust 专项课程 的一部分

包含在 Coursera Plus

深入了解一个主题并学习基础知识。
中级 等级

推荐体验

2 周 完成
在 10 小时 一周
灵活的计划
自行安排学习进度
深入了解一个主题并学习基础知识。
中级 等级

推荐体验

2 周 完成
在 10 小时 一周
灵活的计划
自行安排学习进度

您将学到什么

  • Understand the principles of ownership, borrowing, and references in Rust for safe memory management.

  • Implement and work with slices, arrays, and strings for efficient data handling.

  • Learn how to define and work with structs and enums to structure your programs.

  • Use Option and Result enums to handle optional values and errors effectively.

要了解的详细信息

可分享的证书

添加到您的领英档案

最近已更新!

August 2025

作业

9 项作业

授课语言:英语(English)

了解顶级公司的员工如何掌握热门技能

Petrobras, TATA, Danone, Capgemini, P&G 和 L'Oreal 的徽标

积累特定领域的专业知识

本课程是 Learn to Code with Rust 专项课程 专项课程的一部分
在注册此课程时,您还会同时注册此专项课程。
  • 向行业专家学习新概念
  • 获得对主题或工具的基础理解
  • 通过实践项目培养工作相关技能
  • 获得可共享的职业证书

该课程共有7个模块

In this module, we will introduce Rust’s ownership model and explain how it ensures memory safety. You will explore how Rust manages memory using the stack and heap and learn about moving ownership, borrowing, and how these concepts influence function parameters and return values.

涵盖的内容

19个视频2篇阅读材料1个作业1个插件

In this module, we will dive into references and borrowing in Rust. You will explore how Rust’s ownership model allows safe sharing of data through references, and how it prevents issues like dangling references. Practical examples will help reinforce these important concepts.

涵盖的内容

8个视频1个作业1个插件

In this module, we will explore how slices are used in Rust to provide efficient, safe access to parts of data structures. You will learn to work with string and array slices, using them in functions and manipulating data safely and efficiently.

涵盖的内容

11个视频1个作业1个插件

In this module, we will introduce you to structs in Rust, focusing on how they are used to structure related data. You will learn about methods, updating struct instances, and organizing your code with impl blocks, applying your knowledge in a hands-on project.

涵盖的内容

21个视频1个作业1个插件

In this module, we will explore Rust’s enums and how they allow you to represent flexible and complex data. You will learn about pattern matching, methods on enums, and how to use them in practical applications to simplify your code.

涵盖的内容

16个视频1个作业1个插件

In this module, we will introduce you to generics in Rust and explain how they allow for flexible, reusable code. You will explore their use in functions, structs, and enums, applying these concepts in a hands-on project to reinforce your learning.

涵盖的内容

9个视频1个作业1个插件

In this module, we will cover Rust's Option and Result enums for handling optional and error-prone values. You will learn how to use pattern matching and practical methods to safely manage data, building your skills through a hands-on project.

涵盖的内容

15个视频1篇阅读材料3个作业1个插件

获得职业证书

将此证书添加到您的 LinkedIn 个人资料、简历或履历中。在社交媒体和绩效考核中分享。

位教师

Packt - Course Instructors
Packt
971 门课程234,954 名学生

提供方

Packt

从 Software Development 浏览更多内容

人们为什么选择 Coursera 来帮助自己实现职业发展

Felipe M.
自 2018开始学习的学生
''能够按照自己的速度和节奏学习课程是一次很棒的经历。只要符合自己的时间表和心情,我就可以学习。'
Jennifer J.
自 2020开始学习的学生
''我直接将从课程中学到的概念和技能应用到一个令人兴奋的新工作项目中。'
Larry W.
自 2021开始学习的学生
''如果我的大学不提供我需要的主题课程,Coursera 便是最好的去处之一。'
Chaitanya A.
''学习不仅仅是在工作中做的更好:它远不止于此。Coursera 让我无限制地学习。'
Coursera Plus

通过 Coursera Plus 开启新生涯

无限制访问 10,000+ 世界一流的课程、实践项目和就业就绪证书课程 - 所有这些都包含在您的订阅中

通过在线学位推动您的职业生涯

获取世界一流大学的学位 - 100% 在线

加入超过 3400 家选择 Coursera for Business 的全球公司

提升员工的技能,使其在数字经济中脱颖而出

常见问题