@@ -23,25 +23,25 @@ pub struct LrmHandle(usize);
23
23
#[ derive( Copy , Clone , Debug , Eq , Hash , PartialEq ) ]
24
24
pub struct TraversalHandle ( usize ) ;
25
25
26
- /// Represents an Linear Reference Method (LRM)
27
- /// It is the combination of one (or more) [`Traversals`] for one [`LrmScale`]
26
+ /// Represents an Linear Reference Method (LRM).
27
+ /// It is the combination of one (or more) [`Traversal`]s for one [`LrmScale`].
28
28
pub struct Lrm {
29
- /// The scale of the LRM
29
+ /// The scale of this [`Lrm`].
30
30
pub scale : LrmScale ,
31
- /// Traversal that is the reference of this LRM
31
+ /// The [` Traversal`] that is the reference of this [`Lrm`].
32
32
pub reference_traversal : TraversalHandle ,
33
- /// All the traversals where this LRM applies
33
+ /// All the [`Traversal`]s where this [`Lrm`] applies.
34
34
pub traversals : Vec < TraversalHandle > ,
35
35
}
36
36
37
- /// A traversal is path in the network that ends [`Curve`]
38
- /// That traversals can be used for many different [`Lrm`]
37
+ /// A [`Traversal`] is path in the network that ends [`Curve`].
38
+ /// That [`Traversal`]s can be used for many different [`Lrm`]s.
39
39
struct Traversal < CurveImpl : Curve > {
40
- /// Identifies the traversal
40
+ /// Identifies this [`Traversal`].
41
41
id : String ,
42
- /// The geometrical curve of the traversal
42
+ /// The geometrical [`Curve`] of this [`Traversal`].
43
43
curve : CurveImpl ,
44
- /// All the [`Lrm`] that use this traversal
44
+ /// All the [`Lrm`]s that use this [`Traversal`].
45
45
lrms : Vec < LrmHandle > ,
46
46
}
47
47
@@ -261,7 +261,7 @@ pub enum LrsError {
261
261
InvalidArchive ,
262
262
}
263
263
264
- /// The basic functions to manipulate the LRS
264
+ /// The basic functions to manipulate the [`Lrs`].
265
265
pub trait LrsBase {
266
266
/// Returns the [`LrmHandle`] (if it exists) of the [`Lrm`] identified by its `lrm_id`.
267
267
fn get_lrm ( & self , lrm_id : & str ) -> Option < LrmHandle > ;
0 commit comments