Commit e2d176e 1 parent a1097f6 commit e2d176e Copy full SHA for e2d176e
File tree 3 files changed +797
-2
lines changed
3 files changed +797
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ mod lrs_generated;
9
9
pub mod curves;
10
10
#[ deny( missing_docs) ]
11
11
pub mod lrm_scale;
12
+ #[ deny( missing_docs) ]
13
+ pub mod lrs;
12
14
pub use lrs_generated:: * ;
13
15
14
16
#[ test]
Original file line number Diff line number Diff line change @@ -153,6 +153,7 @@ impl ScaleBuilder {
153
153
/// A measure defines a location on the [LrmScale].
154
154
/// It is given as an [Anchor] name and an `offset` on that scale.
155
155
/// It is often represented as `12+100` to say `“100 scale units after the Anchor 12`”.
156
+ #[ derive( Clone , Debug ) ]
156
157
pub struct LrmScaleMeasure {
157
158
/// `Name` of the [Anchor]. While it is often named after a kilometer position,
158
159
/// it can be anything (a letter, a landmark).
@@ -306,9 +307,9 @@ impl LrmScale {
306
307
}
307
308
308
309
#[ cfg( test) ]
309
- mod tests {
310
+ pub mod tests {
310
311
use super :: * ;
311
- fn scale ( ) -> LrmScale {
312
+ pub fn scale ( ) -> LrmScale {
312
313
ScaleBuilder :: new ( Anchor :: new ( "a" , 0. , 0. ) )
313
314
. add_named ( "b" , 10. , 100. )
314
315
. build ( "id" )
You can’t perform that action at this time.
0 commit comments