File tree Expand file tree Collapse file tree 4 files changed +22
-26
lines changed Expand file tree Collapse file tree 4 files changed +22
-26
lines changed Original file line number Diff line number Diff line change 1- /*!
2- Simple zero-overhead unit of measure types
3-
4- A poor man's version of F#'s units of measure, in order to keep units correct by
5- construction. I wrote these rather than use the popular `uom` crate because the
6- latter obscures the actual storage unit and numeric type.
7- */
1+ //! Simple zero-overhead unit of measure types
2+ //!
3+ //! A poor man's version of F#'s units of measure, in order to keep units
4+ //! correct by construction. I wrote these rather than use the popular `uom`
5+ //! crate because the latter obscures the actual storage unit and numeric type.
86
97use std:: ops:: { Add , AddAssign , Div } ;
108
Original file line number Diff line number Diff line change 1- /*!
2- Abstract course elements
3- */
1+ //! Abstract course elements
42
53use coretypes:: GeoPoint ;
64use coretypes:: measure:: Meters ;
Original file line number Diff line number Diff line change 1- /*!
2- GPX track/route and waypoint reader
3-
4- # Usage
5-
6- Provides an iterator that reads in sequence the trackpoints/routepoints,
7- waypoints, and other relevant items from a GPX track file.
8-
9- This module treats GPX routes and tracks synonymously, except that tracks may
10- also contain segments.
11-
12- To use module, instantiate a [`GpxReader`] by calling
13- [`GpxReader::from_text`] or [`GpxReader::from_reader`]. Iterating over the
14- [`GpxReader`] will produce a sequence of [`GpxItem`] describing the
15- contents of the input.
16- */
1+ //! GPX track/route and waypoint reader
2+ //!
3+ //! # Usage
4+ //!
5+ //! Provides an iterator that reads in sequence the trackpoints/routepoints,
6+ //! waypoints, and other relevant items from a GPX track file.
7+ //!
8+ //! This module treats GPX routes and tracks synonymously, except that tracks
9+ //! may also contain segments.
10+ //!
11+ //! To use this module, instantiate a [`GpxReader`] by calling
12+ //! [`GpxReader::from_text`] or [`GpxReader::from_reader`]. Iterating over the
13+ //! [`GpxReader`] will produce a sequence of [`GpxItem`] describing the
14+ //! contents of the input.
1715
1816use std:: io:: BufRead ;
1917use std:: num:: ParseFloatError ;
Original file line number Diff line number Diff line change @@ -2,3 +2,5 @@ unstable_features = true
22group_imports = " StdExternalCrate"
33imports_granularity = " Module"
44reorder_imports = true
5+ wrap_comments = true
6+ comment_width = 80
You can’t perform that action at this time.
0 commit comments