|
|
|||
|
||||
OverviewKickstart your journey into Rust's functional world with this hands-on guide. You'll learn to think in pure functions, model domains with algebraic data types, and compose zero-cost abstractions, building the confidence to create safe, concurrent, and maintainable applications from day one. What You'll Learn - Embrace pure functions and side-effect isolation using Result, Option, and functional error pipelines - Model complex domains with structs and enums, capturing business invariants in ADTs - Harness exhaustive pattern matching and advanced destructuring to handle every case at compile time - Build custom error types and chain failures elegantly with the ? operator and combinators - Design zero-cost abstractions via generics, monomorphization, and traits as type-classes - Master lazy, composable iterator chains and craft your own iterator adaptors for efficient data flows - Leverage async/await and futures for non-blocking I/O, then offload CPU-bound work to Rayon's parallel iterators - Navigate Rust's concurrency guarantees with Send and Sync, scoped thread pools, and safe shared state - Encapsulate side effects in adapter layers-keeping your core logic pure and fully testable - Test, benchmark, and validate: unit tests, property-based tests, integration tests, and Criterion benchmarks Hands-On Projects - Split a CLI into two crates-pure core logic and I/O adapter-proving zero side-effects in tests - Build an AST for a mini expression language, implement a fold-style evaluator and precedence-aware pretty-printer - Develop an in-order iterator for a generic binary tree plus an in-place map_tree function with zero heap allocations - Create an async pipeline that fetches JSON from multiple endpoints, validates payloads, and transforms data in parallel with Rayon - Construct a mini-service crate exposing pure request/response APIs, wrap it with a Tokio-powered adapter, and trace every call - Implement custom error-handling pipelines, leveraging thiserror and structured logging for clear diagnostics Who This Book Is For - Rust developers moving from imperative to functional styles, eager to harness purity and ADTs - Systems engineers building concurrent services without sacrificing safety or performance - Library authors crafting zero-cost abstractions and domain-specific APIs that are easy to test and evolve - Students and self-learners seeking a practical, project-driven path through Rust's functional programming features Take the first step toward mastering functional Rust. Design systems that are safe by construction, data flows that scale on multi-core machines, and codebases that remain clear, testable, and resilient over time. Full Product DetailsAuthor: Kevin D MartelPublisher: Independently Published Imprint: Independently Published Dimensions: Width: 17.00cm , Height: 0.90cm , Length: 24.40cm Weight: 0.281kg ISBN: 9798292979906Pages: 172 Publication Date: 17 July 2025 Audience: General/trade , General Format: Paperback Publisher's Status: Active Availability: Available To Order We have confirmation that this item is in stock with the supplier. It will be ordered in for you and dispatched immediately. Table of ContentsReviewsAuthor InformationTab Content 6Author Website:Countries AvailableAll regions |
||||