Mastering Rust
Mastering Rust helps the reader master the powerful Rust programming language for creating stable and versatile applications and projects.
Rust is a dependable and robust programming language that was created with todays needs in mind, which is something that several other scripting languages lack.
Rust was developed to provide high functions comparable to those of C and C++, and with a focus on code integrity, which is, arguably, lacking in languages such as C. Rust is a dynamically typed language that emphasizes performance and reliability, particularly in parallelism and storage organization. Rust allows you to store data on the tower or the shedload, and it recognizes the importance of performance optimization. It permits even more effective memory usage as well as faster memory management than most other programming languages in its league.
Make no mistake about it Rust is a programming language with a strong learning curve, and is considered complicated by even the most experienced of developers. The rewards for learning Rust are aplenty, but the learning process itself requires a good deal of determination and hard work.
Nonetheless, Rust aims to provide a secure, concurrent, and practical systems language in ways that other programming languages do not, and this is primarily why Rust is often the preferred choice for building complex and highly stable apps. Rust boasts of advantages over many other programming languages in terms of expressiveness, speed, sound design, and memory storage. Though the language is new and constantly changing with time, there is an excellent opportunity in this field for future employment. That said, to learn the reliable language that is Rust, you need to have an equally reliable companion guide in your hands, and this is where Mastering Rust comes in.
With Mastering Rust , learning Rust programming language becomes a charm, and will undoubtedly help readers advance their careers.
The Mastering Computer Science series is edited by Sufyan bin Uzayr, a writer and educator with more than a decade of experience in the computing field.
Mastering Computer Science
Series Editor: Sufyan bin Uzayr
Mastering Rust: A Beginners Guide
Divya Sachdeva, Faruq KC, and Aruqqa Khateib
Mastering Visual Studio Code: A Beginners Guide
Jaskiran Kaur, D Nikitenko, and Mathew Rooney
Mastering Django: A Beginners Guide
Jaskiran Kaur, NT Ozman, and Reza Nafim
Mastering Ubuntu: A Beginners Guide
Jaskiran Kaur, Rubina Salafey, and Shahryar Raz
Mastering KDE: A Beginners Guide
Jaskiran Kaur, Mathew Rooney, and Shahryar Raz
Mastering Kotlin: A Beginners Guide
Divya Sachdeva, Faruq KC, and Aruqqa Khateib
For more information about this series, please visit: https://www.routledge.com/Mastering-Computer-Science/book-series/MCS
The Mastering Computer Science series of books are authored by the Zeba Academy team members, led by Sufyan bin Uzayr.
Zeba Academy is an EdTech venture that develops courses and content for learners primarily in STEM fields, and offers education consulting to Universities and Institutions worldwide. For more info, please visit https://zeba.academy
Mastering Rust
A Beginners Guide
Edited by Sufyan bin Uzayr
First edition published 2023
by CRC Press
6000 Broken Sound Parkway NW, Suite 300, Boca Raton, FL 33487-2742
and by CRC Press
4 Park Square, Milton Park, Abingdon, Oxon, OX14 4RN
CRC Press is an imprint of Taylor & Francis Group, LLC
2023 Sufyan bin Uzayr
Reasonable efforts have been made to publish reliable data and information, but the author and publisher cannot assume responsibility for the validity of all materials or the consequences of their use. The authors and publishers have attempted to trace the copyright holders of all material reproduced in this publication and apologize to copyright holders if permission to publish in this form has not been obtained. If any copyright material has not been acknowledged please write and let us know so we may rectify in any future reprint.
Except as permitted under U.S. Copyright Law, no part of this book may be reprinted, reproduced, transmitted, or utilized in any form by any electronic, mechanical, or other means, now known or hereafter invented, including photocopying, microfilming, and recording, or in any information storage or retrieval system, without written permission from the publishers.
For permission to photocopy or use material electronically from this work, access www.copyright.com or contact the Copyright Clearance Center, Inc. (CCC), 222 Rosewood Drive, Danvers, MA 01923, 978-750-8400. For works that are not available on CCC please contact mpkbookspermissions@tandf.co.uk
Trademark notice: Product or corporate names may be trademarks or registered trademarks and are used only for identification and explanation without intent to infringe.
Library of Congress CataloginginPublication Data
Names: Bin Uzayr, Sufyan, editor.
Title: Mastering Rust : a beginners guide / edited by Sufyan bin Uzayr.
Description: First edition. | Boca Raton : CRC Press, 2022. | Includes bibliographical references and index.
Identifiers: LCCN 2022020964 (print) | LCCN 2022020965 (ebook) | ISBN 9781032319049 (hbk) | ISBN 9781032319018 (pbk) | ISBN 9781003311966 (ebk)
Subjects: LCSH: Rust (Computer program language) | Computer programming.
Classification: LCC QA76.73.R87 M355 2022 (print) | LCC QA76.73.R87 (ebook) | DDC 005.13/3--dc23/eng/20220805
LC record available at https://lccn.loc.gov/2022020964
LC ebook record available at https://lccn.loc.gov/2022020965
ISBN: 9781032319049 (hbk)
ISBN: 9781032319018 (pbk)
ISBN: 9781003311966 (ebk)
DOI: 10.1201/9781003311966
Typeset in Minion
by Deanta Global Publishing Services, Chennai, India
Contents
Mastering Computer Science Series Preface
The Mastering Computer Science covers a wide range of topics, spanning programming languages as well as modern-day technologies and frameworks. The series has a special focus on beginner-level content, and is presented in an easy-to-understand manner, comprising:
- Crystal-clear text, spanning various topics sorted by relevance
- A special focus on practical exercises, with numerous code samples and programs
- A guided approach to programming, with step-by-step tutorials for the absolute beginners
- Keen emphasis on real-world utility of skills, thereby cutting the redundant and seldom-used concepts and focusing instead on industry-prevalent coding paradigm
- A wide range of references and resources to help both beginner and intermediate-level developers gain the most out of the books
The Mastering Computer Science series of books starts from the core concepts, and then quickly moves on to industry-standard coding practices, to help learners gain efficient and crucial skills in as little time as possible. The books assume no prior knowledge of coding, so even absolute newbie coders can benefit from this series.
The Mastering Computer Science series is edited by Sufyan bin Uzayr, a writer and educator with more than a decade of experience in the computing field.
About the Editor
Next page