К содержимому
learnspaceYOUR NEXT CHAPTER
ПРОСТРАНСТВО ОБУЧЕНИЯ
ГлавнаяКаталог курсовМоё обучениеCoursera

Знания без границ

Учитесь у лучших университетов и компаний мира.

Открыть Coursera
Интеграция
Пространство университета
Моё пространствоСтраница курса
↵
ЯЛичный кабинетСтудент
© 2026 LearnSpaceКаждый день — возможность узнать больше.Помощь
Building Idiomatic Rust with Traits and Collections · LearnSpace
Назад в каталог
courseraПрограммирование

Building Idiomatic Rust with Traits and Collections

Курс от Packt
Средний≈ 20.7 чАнглийский
О курсеНавыкиПрограммаПреподаватели

О курсе

This course features Coursera Coach! A smarter way to learn with interactive, real-time conversations that help you test your knowledge, challenge assumptions, and deepen your understanding as you progress through the course. Rust is a powerful language designed for performance and memory safety, and in this course, you’ll master building idiomatic Rust programs using collections, traits, and advanced features. Through detailed examples and hands-on projects, you’ll gain the skills to handle dynamic data with vectors, HashMaps, and strings, and build clean, reusable, and flexible code with traits. By the end of the course, you’ll have a solid understanding of Rust’s collections and trait system to write efficient, modular code in a variety of domains. The course begins with the fundamentals of Rust’s collections: vectors, strings, and HashMaps. You’ll learn how to manipulate these data structures and apply ownership rules effectively. Then, you’ll dive into traits—defining, implementing, and using them to define shared behavior, enforce constraints, and ensure code reuse. Additionally, you’ll explore error handling techniques, which are crucial for robust Rust applications. This course is ideal for intermediate Rust programmers looking to deepen their knowledge and improve their code organization and structure. It is a perfect fit for anyone looking to write clean, idiomatic Rust code while mastering Rust’s powerful collection types and trait system.

Навыки, которые вы освоите

Rust (Programming Language)Data StructuresPackage and Software ManagementMemory ManagementData ManagementCode Reusability

Программа курса

6 модулей · 118 учебных материалов

01Vectors13 материалов

Vectors

Introduction to the Course 'Building Idiomatic Rust with Traits and Collections'ЧтениеFull Specialization ResourcesЧтениеCreate a VectorВидеоAdding and Removing ElementsВидео

Учитесь у экспертов

Packt - Course Instructors

Преподаватель курса

Building Idiomatic Rust with Traits and Collections
В каталоге вашей программы

Инвестируйте в себя

Новые знания — в удобное для вас время.

Начать на Coursera

Обучение откроется на Coursera
в новой вкладке

Обучение на Coursera

≈ 20.7 ч

6 модулей

Язык: Английский

Субтитры: Арабский, Французский, Итальянский, Корейский, Немецкий, Индонезийский, Испанский, Японский, Казахский

Часть программы вашего университета
Reading Vector ElementsВидео
The get MethodВидео
Ownership with VectorsВидео
Writing Vector ElementsВидео
Vector Capacity Behind the ScenesВидео
Project SolutionВидео
Section ReviewВидео
Working with Vectors in RustDIALOGUE
Vectors - AssessmentЗадание
02Project Structure27 материалов

Project Structure

Packages and CratesВидеоIntro to ModulesВидеоThe pub KeywordВидеоThe Benefit of NamespacesВидеоModule as FileВидеоModule as FolderВидеоModule AmbiguityВидеоPublic Enums, Public Structs, and Public FieldsВидеоSubmodulesВидеоThe crate PrefixВидеоThe use Keyword IВидеоThe use Keyword II (Name Conflicts)ВидеоThe self KeywordВидеоThe super KeywordВидеоCreate Aliases with the as KeywordВидеоUsing pub use to Export Names from SubmodulesВидеоExternal CratesВидеоThe Standard LibraryВидеоThe Glob OperatorВидеоCreate Library CrateВидеоMultiple Binary CratesВидеоDocumentation CommentsВидеоWalking Through Sample Module StructureВидеоProject SolutionВидеоSection ReviewВидеоUnderstanding Rust Packages and ModulesDIALOGUEProject Structure - AssessmentЗадание
03Strings9 материалов

Strings

Review of StringsВидеоConcatenationВидеоThe format! MacroВидеоCommon String Methods (trim, casing, replace, split)ВидеоCollecting User Input with read_line MethodВидеоProject SolutionВидеоSection ReviewВидеоStrings in Rust: Review and PracticeDIALOGUEStrings - AssessmentЗадание
04HashMaps12 материалов

HashMaps

Create a HashMap with new FunctionВидеоThe remove MethodВидеоHashMaps and OwnershipВидеоAccess a Value by KeyВидеоOverwriting a Value with an Existing KeyВидеоThe entry MethodВидеоThe HashSetВидеоHashSet OperationsВидеоProject SolutionВидеоSection ReviewВидеоWorking with Rust HashMapsDIALOGUEHashMaps - AssessmentЗадание
05Error Handling15 материалов

Error Handling

The panic! MacroВидеоThe process Module and the exit FunctionВидеоStandard Error (eprintln! Macro)ВидеоOpening a FileВидеоAsking the User for InputВидеоReading the File's ContentsВидеоPropagating ErrorsВидеоUnderstanding Error Type RedeclarationВидеоThe ? OperatorВидеоThe read_to_string Associated FunctionВидеоUsing ? with OptionВидеоProject SolutionВидеоSection ReviewВидеоHandling Errors in RustDIALOGUEError Handling - AssessmentЗадание
06Traits42 материалов

Traits

Intro to TraitsВидеоDefining a TraitВидеоImplementing Trait for Struct IВидеоImplementing Trait for Struct IIВидеоDefault ImplementationsВидеоCalling Trait Method from Another MethodВидеоTraits for Function Parameter ConstraintsВидеоTrait Bound SyntaxВидеоMultiple Trait BoundsВидеоwhere ClausesВидеоTraits as Function Return ValuesВидеоTrait Bounds to Conditionally Implement MethodsВидеоA Preview of Trait ObjectsВидеоTrait Must be In Scope to Use its DefinitionsВидеоMoving to Project Structure IВидеоMoving to Project Structure II (Multiple Modules)ВидеоAssociated Constants in a TraitВидеоGetters in TraitsВидеоSetters in TraitsВидеоSupertraits I (Trait Inheritance)ВидеоTraits with GenericsВидеоImplementing the Display Trait on a StructВидеоImplementing the Display Trait on an EnumВидеоImplementing the Debug TraitВидеоFormatter MethodsВидеоImplementing the Drop TraitВидеоImplementing the Clone TraitВидеоImplementing the Copy TraitВидеоImplementing the PartialEq Trait for StructsВидеоDefining Equality for Different TypesВидеоImplementing the PartialEq Trait for EnumsВидеоImplementing the Eq TraitВидеоImplementing the PartialOrd TraitВидеоAssociated Types IВидеоAssociated Types IIВидеоProject SolutionВидеоSection ReviewВидеоUnderstanding Rust TraitsDIALOGUEConclusion to the Course 'Building Idiomatic Rust with Traits and Collections'ЧтениеTraits - AssessmentЗаданиеFull Course Practice AssessmentЗаданиеFull Course AssessmentЗадание