Debian Codegraph @

design.rsk

raw
1
2 [REQ-purpose]
3 refs = ["{repo}/README.md"]
4
5 [REQ-syntax]
6 text = '''
7 The format string will follow python's exactly.
8
9 This is to get away from the `#` and extra `0` formats that are there for
10 almost no reason.
11 '''
12
13 [REQ-syntax-ineractions]
14 text = '''
15 - alignment is ignored without a width
16 - precision is ignored if a width is given
17 - precsion only pads if align == Left
18 '''
19
20 [REQ-crate]
21 text = '''
22 This library **shall** be accessible on crates.io, rust's library
23 repository
24 '''
25
26 [REQ-performance]
27 text = '''
28 This library **shall** run as fast as possible and with as little
29 memory as possible
30 '''
31
32 [REQ-trait]
33 text = '''
34 This library **shall** export `Format` traits so that all supported
35 types can use the `format` method.
36 '''
37
38 [SPC-strfmt]
39 partof = "REQ-purpose"
40 text = '''
41 there **shall** be a public function that accepts a string to
42 format and a `HashMap<String, String>` to use as values.
43
44 It will format the values according to the standard in rust's
45 std::fmt module.
46 '''
47
48 [SPC-fmt]
49 loc = "LOC-fmt"
50 text = '''
51 The `Fmt` struct **shall** contain information of how to format
52 a string and have a method that accepts the map to format
53
54 The `Fmt` struct **will** be the primary workhorse of actually
55 formatting the string
56 ```
57
58 [SPC-errors]
59 loc = "LOC-error: {lib}"
60 text = '''
61 any errors on formatting a string **shall** result in a returned
62 error object
63 '''