Back to Browse

2B. Type State Pattern - From Python to Rust

1.8K views
Apr 16, 2022
27:34

Type state pattern, allows writing APIs that are validating their correct use at compile-time: - Require a function to be always called - Enforce order of function calls - Forbid a function to be called twice - Mutually exclusive function calls useful crate: https://crates.io/crates/typed-builder Source code for this episode (and the others of the series) can be found at https://github.com/bedroombuilds/python2rust

Download

1 formats

Video Formats

360pmp437.1 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

2B. Type State Pattern - From Python to Rust | NatokHD