{"id":26165062,"url":"https://github.com/0xsaksham/branches","last_synced_at":"2026-06-10T09:31:27.334Z","repository":{"id":208459463,"uuid":"721603111","full_name":"0xSaksham/branches","owner":"0xSaksham","description":"A curated set of Rust code snippets demonstrating key language features, from basic conditionals to loops. Ideal for quick reference and learning essentials. 🦀","archived":false,"fork":false,"pushed_at":"2023-12-05T11:13:25.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-11T15:57:42.239Z","etag":null,"topics":["practice-programming","rust","rust-lang"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0xSaksham.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-21T11:59:46.000Z","updated_at":"2023-11-22T08:59:38.000Z","dependencies_parsed_at":"2023-11-21T16:38:53.948Z","dependency_job_id":"3e9e6e17-d627-432d-84a4-0eb87222601b","html_url":"https://github.com/0xSaksham/branches","commit_stats":null,"previous_names":["0xsaksham/branches"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/0xSaksham/branches","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xSaksham%2Fbranches","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xSaksham%2Fbranches/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xSaksham%2Fbranches/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xSaksham%2Fbranches/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xSaksham","download_url":"https://codeload.github.com/0xSaksham/branches/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xSaksham%2Fbranches/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34146871,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["practice-programming","rust","rust-lang"],"created_at":"2025-03-11T15:57:43.356Z","updated_at":"2026-06-10T09:31:27.286Z","avatar_url":"https://github.com/0xSaksham.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rust Code Showcase\n\nThis repository contains a collection of Rust code snippets that demonstrate various concepts in the Rust programming language. The code covers topics such as conditional statements, loops, and control flow. Let's explore what each section entails:\n\n## 1. Simple Conditional Statement\n\nThe `main` function begins with a basic conditional statement that checks if a number is less than 5 and prints either \"True\" or \"False\" accordingly.\n\n## 2. Else If Statement\n\nThe `else_if` function showcases an example of an \"else if\" statement. It determines whether a number is even or odd and prints the result.\n\n## 3. If in Let Statement\n\nThe `if_in_let` function demonstrates the usage of the `if` statement within a `let` statement, showcasing Rust's expressive syntax.\n\n## 4. Infinite Loop\n\nThe `infinite_loop` function contains a loop that runs indefinitely, demonstrating how to create an infinite loop and stop it using CTRL+C in the terminal.\n\n## 5. Using Continue in a Loop\n\nThe `use_continue` function exhibits the `continue` keyword in a `for` loop, skipping even numbers and printing only the odd ones.\n\n## 6. Value from Loop\n\nIn the `value_from_loop` function, a loop accumulates a counter until it reaches 10, then breaks, returning the counter multiplied by 2.\n\n## 7. Named Loops\n\nThe `named_loops` function showcases nested loops, including a named loop (`'counting_up`), breaking out of the outer loop based on specific conditions.\n\n## 8. While Loop\n\nThe `while_loop` function illustrates a simple `while` loop that counts down from 3 to 0, printing the current number in each iteration.\n\nFeel free to explore, modify, and use these code snippets as a reference for learning Rust programming concepts. If you have any questions or improvements, please don't hesitate to contribute or open an issue.\n\nHappy coding in Rust! 🦀\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xsaksham%2Fbranches","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xsaksham%2Fbranches","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xsaksham%2Fbranches/lists"}