Docs.rs
gear_combos-1.0.4
gear_combos 1.0.4
Permalink
Docs.rs crate page
MIT
OR
Apache-2.0
Links
Repository
crates.io
Source
Owners
dazza91
Dependencies
Versions
91.67%
of the crate is documented
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
gear_
combos
1.0.4
All Items
Crate Items
Structs
Functions
Crate
gear_combos
Copy item path
Source
Structs
§
Gear
Represents a gear that can cycle through states. It keeps track of the states available and which state it is currently in.
Functions
§
get_
gears_
combinations
Returns a 2D vector containing every unique combination of states of the gears. Begins by resetting each gear to it’s initial state and progressively cycling each gear from left to right.
get_
gears_
states
Returns a vector containing each state of the gears.
reset_
gears
Loops through each gear calling reset() on each.