Project Nayuki
|
f6f91e4a7f
|
Removed unhelpful assertion error messages from Rust code.
|
3 years ago |
Project Nayuki
|
845eab6f36
|
Simplified a bit of code.
|
3 years ago |
Project Nayuki
|
c7ab2582aa
|
Added value range assertions to QrCode.getPenaltyScore(), in all language ports.
|
3 years ago |
Project Nayuki
|
edc91c622e
|
Renamed a local variable in Rust code for consistency with other language ports.
|
3 years ago |
Project Nayuki
|
f0945bc682
|
Tweaked Python, Rust, TypeScript code to rename the constructor `mask` parameter to `msk` for consistency with Java and C++ language ports (related to commit 67c62461d3 ), and to avoid potential confusion with the object field named `mask`.
|
3 years ago |
Project Nayuki
|
d6be9c5e44
|
Slightly tweaked code and comments to correspond to other language ports.
|
3 years ago |
Project Nayuki
|
c6fcc212d1
|
Simplified a bit of internal Rust code.
|
3 years ago |
Project Nayuki
|
3ae4141666
|
Slightly deoptimized Rust code for clarity, partly undoing commit 6c1f967894 .
|
3 years ago |
Project Nayuki
|
599b637c73
|
Fixed example Rust code in documentation comments, due to commit 6c1f967894 .
|
3 years ago |
Project Nayuki
|
df548a379d
|
Refactored Rust code to use {Range,RangeInclusive}.contains() instead of primitive operations.
|
3 years ago |
Project Nayuki
|
3301b07c21
|
Simplified small pieces of Rust code.
|
3 years ago |
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
|
3185c310e3
|
Refactored a repeated expression in Rust code.
|
3 years ago |
Project Nayuki
|
db4ad0bda8
|
Hyphenated a phrase.
|
3 years ago |
Project Nayuki
|
4d13c303dc
|
Updated package version numbers.
|
3 years ago |
Project Nayuki
|
10c094f99b
|
Tweaked Rust configuration to exclude example programs from crate package.
|
3 years ago |
Project Nayuki
|
c8e1b0caed
|
Fixed example code in Rust documentation, related to commits a88f0942af and 3da57e5aa0 .
|
3 years ago |
Project Nayuki
|
fd425bf995
|
Publicized the Rust functions QrSegment.{is_numeric(),is_alphanumeric()}.
|
3 years ago |
Project Nayuki
|
0e80f23c04
|
Reordered QrSegment.{isNumeric(),isAlphanumeric()} in {C, C++, Rust} versions.
|
3 years ago |
Project Nayuki
|
764749bd8a
|
Added spaces around multiplication operators in QrCode.getAlignmentPatternPositions() for all language versions, for consistency with other code.
|
3 years ago |
Project Nayuki
|
2261248957
|
Removed the test worker program in every language and the Python batch tester, because this is not core functionality and is hard to explain.
|
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
|
1fd0216dfe
|
Changed the word "black" to "dark" in {comments, local variables,} in order to match the vocabulary in the QR Code specification document.
|
3 years ago |
Project Nayuki
|
99e7d59383
|
Changed the word "white" to "light" in {comments, local variables, a private C function} in order to match the vocabulary in the QR Code specification document.
|
3 years ago |
Project Nayuki
|
f9d1172e29
|
Fixed the names of some methods in comments.
|
4 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
|
d00cbd3585
|
Added static types to some variables in Rust code.
|
4 years ago |
Project Nayuki
|
43020cbd67
|
Fixed Rust code to avoid arithmetic overflow when a segment's bit length is very near usize::MAX.
|
4 years ago |
Project Nayuki
|
705ce44efd
|
Fixed arithmetic overflow in Rust code on platforms where usize is 16 bits wide.
|
4 years ago |
Project Nayuki
|
98963e5cba
|
Tweaked Rust code to narrow the bit width of QrCodeEcc.format_bits().
|
4 years ago |
Project Nayuki
|
fd849b188c
|
Updated package version numbers.
|
5 years ago |
Project Nayuki
|
2da5091674
|
Tweaked Rust code to add useful auto-derived traits to almost all structs.
|
5 years ago |
Project Nayuki
|
1439e8e4a5
|
Simplified some Rust code.
|
5 years ago |
Project Nayuki
|
6ea933f159
|
Refactored Rust code to collect some private functions into new private struct.
|
5 years ago |
Project Nayuki
|
29119d3f2e
|
Fixed typo, added blank line.
|
5 years ago |
Project Nayuki
|
fe992753d2
|
Tweaked Rust code to convert more integer casts from 'as' to 'from'.
|
5 years ago |
Project Nayuki
|
6e088f72d3
|
Added an assertion to QrCode.getNumRawDataModules() in all language versions.
|
5 years ago |
Project Nayuki
|
585e80e4f5
|
Slightly simplified Rust code so that for-loops and lambdas capture variables as value-copy instead of reference.
|
5 years ago |
Project Nayuki
|
e83ac1cd62
|
Simplified and clarified various pieces of Rust code.
|
5 years ago |
Project Nayuki
|
2136d88ac8
|
Tweaked Rust code to use inclusive-range for-loops where appropriate.
|
5 years ago |
Project Nayuki
|
9fdd05e64d
|
Simplified some pieces of Rust code.
|
5 years ago |
Project Nayuki
|
765527895c
|
Tightened some Rust variable scopes, simplified a bit of code.
|
5 years ago |
Project Nayuki
|
6007d92aaa
|
Tweaked Rust code to reduce redundant type declarations.
|
5 years ago |
Project Nayuki
|
eb115a9931
|
Tweaked Rust code to convert more integer casts from 'as' to 'from'.
|
5 years ago |
Project Nayuki
|
6431ef47fd
|
Tweaked Rust code to have safer integer lossless upcasts, thanks to clippy's diagnostics.
|
5 years ago |
Project Nayuki
|
621a77757e
|
Simplified miscellaneous Rust code, due to clippy linting.
|
5 years ago |
Project Nayuki
|
78ee34f9a6
|
Simplified some Rust methods to be pass-by-copy-value instead of pass-by-reference, thanks to clippy (linter)'s suggestions.
|
5 years ago |
Project Nayuki
|
1424d9f332
|
Simplified a bit of TypeScript and Rust code using for-each looping.
|
5 years ago |
Project Nayuki
|
50d00ebf76
|
Simplified Rust code using ?-operator on Option (Rust 1.22).
|
5 years ago |