[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-786514-105":59,"doc-similar-786514":130,"doc-detail-786514-en":199},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":123,"head_meta":125,"extra_data":127,"updated_unix":129},105,"en","100-exercises-to-learn-rust","100 Exercises to Learn Rust","","A hands-on course for learning Rust through progressive programming exercises. Luca Palmieri guides readers from syntax, types, variables, control flow, loops, and arithmetic to modelling a ticketing domain with structs, validation, modules, ownership, references, and memory management. Later chapters cover traits, generics, enums, error handling, arrays, vectors, iteration, lifetimes, and combinators, linking language concepts to practical application design. The progression reinforces core Rust ideas through structured practice.",{"@graph":69,"@context":122},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/100-exercises-to-learn-rust/786514/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/100-exercises-to-learn-rust/786514.png","ImageObject",300,407,{"name":92,"@type":93},"archiveofme","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-12-05","2026-12-04",true,{"@type":102,"interactionType":103,"userInteractionCount":8},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118],{"name":109,"@type":110,"acceptedAnswer":111},"What programming language does the course teach?","Question",{"text":112,"@type":113},"It teaches Rust through a hands-on sequence of programming exercises.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does the course introduce Rust fundamentals?",{"text":117,"@type":113},"It begins with syntax, types, variables, control flow, loops, and calculations, then develops these ideas through practical exercises.",{"name":119,"@type":110,"acceptedAnswer":120},"What larger programming concepts are covered?",{"text":121,"@type":113},"The contents include ownership, references, traits, generics, enums, error handling, collections, iteration, and lifetimes.","https://schema.org",{"og:url":83,"og:type":124,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":126,"canonical":83},"index,follow",{"doc_id":128,"site_id":62},786514,1796427832,{"list":131,"token":66},[132,138,144,150,157,164,171,178,185,192],{"doc_id":133,"doc_title":134,"file_type":135,"home_preview_img_url":136,"slug":134,"view_count":8,"category_name":30,"create_tm":137},786515,"m1-01-tour","pdf","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230057400575/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585699&Signature=YXyhAarPJKLqBCfsrBK11uXD1RY%3D",1796427834,{"doc_id":139,"doc_title":140,"file_type":135,"home_preview_img_url":141,"slug":142,"view_count":14,"category_name":30,"create_tm":143},790634,"R22 - Problem Solving Using Python Programming Lab","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230058082585/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585699&Signature=otBMaxWIKaODlesDxanIs2tiA4I%3D","r22-problem-solving-using-python-programming-lab",1796506574,{"doc_id":145,"doc_title":146,"file_type":135,"home_preview_img_url":147,"slug":148,"view_count":14,"category_name":30,"create_tm":149},782930,"F4NS Command Reference","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230055025118/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585699&Signature=I9ozg2JW92VMRqAR3rnnR5mNOiY%3D","f4ns-command-reference",1796321337,{"doc_id":151,"doc_title":152,"file_type":135,"home_preview_img_url":153,"slug":154,"view_count":155,"category_name":30,"create_tm":156},489327,"Vue.js - SiteFarm Introduction","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229927227849/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585699&Signature=68q1rp8Hh5NUPCCGM4QPqYk4k2E%3D","vuejs-sitefarm-introduction",14,1790822267,{"doc_id":158,"doc_title":159,"file_type":135,"home_preview_img_url":160,"slug":161,"view_count":162,"category_name":30,"create_tm":163},115355,"Claude AI Bible - The Complete Guide to Mastering Claude, Claude Code, Claude Cowork, MCP, AI Agents, Automation & Advanced Prompting","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229831893665/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585699&Signature=tit2dzW7tqoq0CYINEpEg4NonY0%3D","claude-ai-bible-the-complete-guide-to-mastering-claude-claude-code-claude-cowork-mcp-ai-agents-automation-advanced-prompting",1021,1785472614,{"doc_id":165,"doc_title":166,"file_type":135,"home_preview_img_url":167,"slug":168,"view_count":169,"category_name":30,"create_tm":170},299143,"THE CANDLESTICK TRADING BIBLE - Trading Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229905832418/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585699&Signature=fd7faDLyZLNcgGUvkRv2Y5HtPKc%3D","the-candlestick-trading-bible-trading-guide",932,1789767270,{"doc_id":172,"doc_title":173,"file_type":135,"home_preview_img_url":174,"slug":175,"view_count":176,"category_name":30,"create_tm":177},185,"XNX Universal Transmitter Installation Manual (Complete Guide) [Honeywell Official]","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693710157/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585699&Signature=RsUiZ09A0SnhQZwJtX%2F%2B13i66DU%3D","xnx-universal-transmitter-installation-manual",870,1776135954,{"doc_id":179,"doc_title":180,"file_type":135,"home_preview_img_url":181,"slug":182,"view_count":183,"category_name":30,"create_tm":184},176,"Free Fire Proxy Server","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693709822/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585699&Signature=sDBER7gU11RcE2yDLHzRoDcG7s8%3D","free-fire-proxy-server",574,1776135932,{"doc_id":186,"doc_title":187,"file_type":135,"home_preview_img_url":188,"slug":189,"view_count":190,"category_name":30,"create_tm":191},129220,"Operations and Supply Chain Management - Eleventh Edition - Dedicated to students and faculty","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229840674154/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585699&Signature=fzz1tYuS6EM5izh85GHYZDAIiZ0%3D","operations-and-supply-chain-management-eleventh-edition-dedicated-to-students-and-faculty",517,1786012506,{"doc_id":193,"doc_title":194,"file_type":135,"home_preview_img_url":195,"slug":196,"view_count":197,"category_name":30,"create_tm":198},8566,"Trik Ngonten TikTok dari 0 Sampai FYP","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229696842324/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796585699&Signature=GdFTs7cidrg24wstFYk79uZsVVY%3D","tiktok-content-tricks-from-0-to-fyp",500,1776338393,{"code":4,"msg":5,"data":200},{"doc_id":128,"user_id":201,"nickname":92,"user_avatar":202,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":203,"file_id":204,"file_url":205,"file_type":135,"file_size":206,"view_count":8,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":207,"language":208,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":209,"faqs":210,"seo_title":211,"seo_description":67,"update_tm":129,"read_time":212,"preview_page_count":213,"preview_urls":214},1649274589051,"https://us-avatar.wpscdn.com/davatar_a8503ba1806abce46bf441b54a3ca4cd","100 Exercises To Learn Rust A hands-on course by Mainmatter  \nLuca Palmieri  \nii  \nContents  \n1 Welcome 1  \n1.1 Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3  \n2 A Basic Calculator 7  \n2.1 Types, part 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7  \n2.2 Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10  \n2.3 Control flow, part 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12  \n2.4 Panics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15  \n2. 5 Factorial . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16  \n2.6 Loops, part 1: while . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16  \n2.7 Loops, part 2: for . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18  \n2.8 Overflow . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19  \n2.9 Case-by-case behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22  \n2.10 Conversions, pt. 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23  \n3 Modelling A Ticket 25  \n3. 1 Structs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25  \n3.2 Validation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28  \n3.3 Modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29  \n3.4 Visibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31  \n3.5 Encapsulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32  \n3.6 Ownership . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34  \n3. 7 Mutable references . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38  \n3.8 Memory layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41  \n3.9 Heap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42  \n3. 10 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45  \n3. 11 Destructors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46  \n3.12 Wrapping up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49  \niv CONTENTS  \n4 Traits 51  \n4. 1 Traits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51  \n4.2 Implementing traits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54  \n4.3 Operator overloading . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56  \n4.4 Derive macros . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58  \n4. 5 Trait bounds . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60  \n4.6 String slices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64  \n4.7 Deref trait . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66  \n4.8 Sized . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68  \n4.9 From and Into . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70  \n4.10 Generics and associated types . . . . . . . . . . . . . . . . . . . . . . . . . . . 73  \n4.11 Copying values, pt. 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76  \n4.12 Copying values, pt. 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78  \n4.13 The Drop trait . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80  \n4.14 Wrapping up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81  \n5 Modelling A Ticket, pt. 2 83  \n5. 1 Enumerations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83  \n5.2 match . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84  \n5.3 Variants can hold data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86  \n5.4 Concise branchi","cbCaifSKDkwCa6di","https://ap.wps.com/l/cbCaifSKDkwCa6di",1733490,180,"English","# Welcome\n## Syntax\n# A Basic Calculator\n## Types, variables, control flow, loops, and overflow\n# Modelling a Ticket\n## Structs, validation, modules, and ownership\n# Traits\n## Generics, trait bounds, and associated types\n# Modelling a Ticket, pt. 2\n## Enums, fallibility, and error handling\n# Ticket Management\n## Arrays, vectors, iteration, and lifetimes","[{\"question\":\"What programming language does the course teach?\",\"answer\":\"It teaches Rust through a hands-on sequence of programming exercises.\"},{\"question\":\"How does the course introduce Rust fundamentals?\",\"answer\":\"It begins with syntax, types, variables, control flow, loops, and calculations, then develops these ideas through practical exercises.\"},{\"question\":\"What larger programming concepts are covered?\",\"answer\":\"The contents include ownership, references, traits, generics, enums, error handling, collections, iteration, and lifetimes.\"}]","100 Exercises to Learn Rust | PDF",454,18,[215,219,223,227,231,235,239,243,247,251,255,260,265,270,274,279,284,289],{"page_no":8,"url":216,"width":217,"height":218},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/23f9d42713b2e020b481bd925f8a6f89.webp",983,1228,{"page_no":14,"url":220,"width":221,"height":222},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/5db7879cd138043d353a93a6fc90d516.webp",982,1227,{"page_no":81,"url":224,"width":225,"height":226},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/be9b593d45c7c592c18953d965c8b6d4.webp",981,1226,{"page_no":19,"url":228,"width":229,"height":230},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/577ed735e15a697a01d60090fc8a744d.webp",980,1224,{"page_no":24,"url":232,"width":233,"height":234},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/170c3ecde6512f15b32678c334815b03.webp",979,1223,{"page_no":29,"url":236,"width":237,"height":238},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/394fe358061224ec4e394ad8b2221ab9.webp",978,1222,{"page_no":34,"url":240,"width":241,"height":242},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/57380ec105fc72f959053fcf5b5397aa.webp",977,1221,{"page_no":39,"url":244,"width":245,"height":246},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/6b691261988a9443448bede5e9ce5757.webp",976,1219,{"page_no":44,"url":248,"width":249,"height":250},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/3920f00e07be1fb533030c3bca7f042b.webp",975,1218,{"page_no":52,"url":252,"width":253,"height":254},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/7a3a58a4505cb5c9f0a3ecdd6c6a0ada.webp",974,1217,{"page_no":256,"url":257,"width":258,"height":259},11,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/a7c6c0f98147b6e7929e97a3c8990fc5.webp",973,1216,{"page_no":261,"url":262,"width":263,"height":264},12,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/43c6132e13de975ff34d560e1790710e.webp",972,1214,{"page_no":266,"url":267,"width":268,"height":269},13,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/aa4e5c9ef6836059d8f128d8349e9a30.webp",971,1213,{"page_no":155,"url":271,"width":272,"height":273},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/8b8c953494740fb62d7b898d69751166.webp",970,1212,{"page_no":275,"url":276,"width":277,"height":278},15,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/eb2addb82a39577bd17045deb9af03ca.webp",969,1211,{"page_no":280,"url":281,"width":282,"height":283},16,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/c20040ad9f55ace015a4d3f247538001.webp",968,1209,{"page_no":285,"url":286,"width":287,"height":288},17,"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/424d0bada60dafc6b368de40c2e72122.webp",967,1208,{"page_no":213,"url":290,"width":291,"height":292},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-12-04/a0034018f3b8a48e606c6bda9e28c0b4.webp",966,1207]