Project Nayuki
6c1f967894
Changed Rust functions to take &str instead of &[char] because that type is more natural to use, removed intermediate step of making Vec<char>, updated demo program to fit.
3 years ago
Project Nayuki
5bc7bce3c3
In Rust version: moved QrCode.to_svg_string() out of the library and into the runnable demo program, slightly adapted some code, updated documentation comments.
3 years ago
Project Nayuki
8cbd1f506a
Changed Rust API to move the version min/max values into associated constants for its type.
4 years ago
Project Nayuki
bafd258293
Clarified a few pieces of Rust code.
4 years ago
Project Nayuki
0cded0ba36
Aligned main comments in demo programs.
6 years ago
Project Nayuki
c0b684bc18
Tweaked comment for kanji demo in multiple languages, so that it corresponds to the order in the sample text string.
7 years ago
Project Nayuki
9628e25971
Updated Rust code to wrap valid mask numbers in a simple struct, removed unnecessary argument assertions.
7 years ago
Project Nayuki
27aad80052
Updated Rust code to use wrapper struct for BitBuffer, to avoid repeatedly writing mutable borrows.
7 years ago
Project Nayuki
5a5626edb2
Added integer constants for QR Code min/max version numbers, made use of new constants in library and example applications, in all language versions except C.
7 years ago
Project Nayuki
6f5eccf2fc
Tweaked some Rust code for clarity, without changing behavior.
7 years ago
Project Nayuki
e0672f5fd5
Simplified some Rust code by moving Vec's type parameter to the function call instead of being in the variable declaration's type.
7 years ago
Project Nayuki
6a71e09f72
Added/tweaked comments and blank lines in demo programs of all language versions except JavaScript.
7 years ago
Project Nayuki
b86466ecd5
- Deleted constructors/functions/code for remasking existing QrCode object (due to doubtful real-world usefulness): C++, Java, JavaScript, Python, Rust.
...
- Tweaked code and comments due to feature removal: JavaScript, Python.
- Updated demo programs to reflect new API usage and add new example: C, C++, Java, Python, Rust.
7 years ago
Project Nayuki
8ef73d2325
Changed Rust API to take Option<u8> instead of i8 for automatic masking, updated related code and assertions.
7 years ago
Project Nayuki
88be30fe12
Changed Rust QrSegmentMode struct into enum, changed fields to methods, made the type copyable, got rid of static lifetimes and references in favor of passing by value, updated a program to work with this altered API.
7 years ago
Project Nayuki
b7817ab944
Changed Rust QrCodeEcc struct into enum, changed fields to methods, made the type copyable, got rid of static lifetimes and references in favor of passing by value, updated programs to work with this altered API.
7 years ago
Project Nayuki
82156abb10
Changed Rust library's API to return Option<QrCode> instead of QrCode, updated demo program to fit.
7 years ago
Project Nayuki
d4f71e49d7
Added a working demo example program in Rust.
7 years ago