Skip to content

Commit 0e9ff05

Browse files
authored
Merge pull request #11 from osrd-project/low_level_lrm
Add low level LrmScale implementation
2 parents 6d96c8d + be62df9 commit 0e9ff05

File tree

4 files changed

+398
-2
lines changed

4 files changed

+398
-2
lines changed

README.md

+7-1
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,10 @@ The schema is described in [schema/lrs.fbs](schema/lrs.fbs). The library is writ
1212

1313
If your contribution changes the schema, you will need to generate the file with flatc. The version must be the release 23.5.26. Do not use a version built from master.
1414

15-
`flatc -o src --rust schema/lrs.fbs`
15+
`flatc -o src --rust schema/lrs.fbs`
16+
17+
## Norms
18+
19+
### Comment convention
20+
21+
See [How to write documentation in Rust](https://doc.rust-lang.org/rustdoc/how-to-write-documentation.html) to keep the code clean and clear (also [this](https://github.com/rust-lang/rfcs/blob/master/text/1574-more-api-documentation-conventions.md#appendix-a-full-conventions-text) for other examples).

src/curves.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use thiserror::Error;
1313
/// It provides basic primitives to locate/project points on it
1414
/// A curve can be part of a larger curve (e.g. for optimisation purpurses and have better bounding boxes)
1515
/// The curve can be implemented
16-
trait Curve {
16+
pub trait Curve {
1717
/// Project the point to the closest position on the curve
1818
/// Will fail if the curve is invalid (e.g. no points on it)
1919
/// or if the point is to far away

src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ mod lrs_generated;
77

88
#[deny(missing_docs)]
99
pub mod curves;
10+
#[deny(missing_docs)]
11+
pub mod lrm_scale;
1012
pub use lrs_generated::*;
1113

1214
#[test]

0 commit comments

Comments
 (0)